| #
9b88ac22
|
| 29-Oct-2025 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'MarDiehl/improve-Fortran-examples' into 'main'
Improve Fortran examples
See merge request petsc/petsc!8698
|
| #
01fa2b5a
|
| 10-Oct-2025 |
Martin Diehl <mail@martin-diehl.net> |
cleanup suggestions by @BarrySmith
also noticed a few stray functions not marked as external and put them into modules
|
| #
e7a95102
|
| 05-Oct-2025 |
Martin Diehl <mail@martin-diehl.net> |
use modules instead of external
this allows for argument checking
|
| #
c5e229c2
|
| 29-Sep-2025 |
Martin Diehl <mail@martin-diehl.net> |
place all the include statements at the top
Repeated inclusion in multiple location, e.g. at the start of a module or function is not needed. This becomes clear if all includes are outside of the ac
place all the include statements at the top
Repeated inclusion in multiple location, e.g. at the start of a module or function is not needed. This becomes clear if all includes are outside of the actual Fortran code. Added regex to check that with the help of @sbalay
show more ...
|
| #
edb0e59d
|
| 23-Sep-2025 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'barry/2025-07-01/format-fortran-source-fprettify' into 'main'
format fortran source with fprettify
See merge request petsc/petsc!8514
|
| #
4820e4ea
|
| 23-Sep-2025 |
Barry Smith <bsmith@mcs.anl.gov> |
Run fprettify
|
| #
226f8a8a
|
| 20-May-2025 |
Satish Balay <balay@mcs.anl.gov> |
Merge remote-tracking branch 'origin/release'
|
| #
165c2d34
|
| 20-May-2025 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'barry/2025-05-15/docs-rm-last-of-preconditioning-matrix/release' into 'release'
Remove use of preconditioning or preconditioner matrix when it should be...
See merge request petsc/pet
Merge branch 'barry/2025-05-15/docs-rm-last-of-preconditioning-matrix/release' into 'release'
Remove use of preconditioning or preconditioner matrix when it should be...
See merge request petsc/petsc!8410
show more ...
|
| #
7addb90f
|
| 16-May-2025 |
Barry Smith <bsmith@mcs.anl.gov> |
Remove use of preconditioning or preconditioner matrix when it should be phrased as matrix used to construct preconditioner
|
| #
6d8694c4
|
| 20-Mar-2025 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'barry/2024-04-29/add-fortran-enums' into 'main'
Major updates to Fortran interface
See merge request petsc/petsc!7517
|
| #
ce78bad3
|
| 20-Feb-2025 |
Barry Smith <bsmith@petsc.dev> |
Fortran 90: fully embrace After 34 years!
- deprecate use of 'F90' in Fortran function names - use Fortran pointers when appropriate - the new Fortran API is not backward compatible with previous ve
Fortran 90: fully embrace After 34 years!
- deprecate use of 'F90' in Fortran function names - use Fortran pointers when appropriate - the new Fortran API is not backward compatible with previous versions! - also clean up inconsistent PETSc code detected by new Fortran generation tools - drop use of bfort - automatically generate all the Fortran PETSc objects, enums etc from the include files - generate most of the Fortran interface definitions and functions from the source code - simplify the number and organization of Fortran modules
Co-authored-by: Jose E. Roman <jroman@dsic.upv.es>
show more ...
|
| #
32e03751
|
| 29-Jul-2024 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'jose/deprecate-petsc-default' into 'main'
Fix usage of deprecated PETSC_DEFAULT
See merge request petsc/petsc!7707
|
| #
fb842aef
|
| 29-Jul-2024 |
Jose E. Roman <jroman@dsic.upv.es> |
Fix usage of deprecated PETSC_DEFAULT
|
| #
a7155305
|
| 23-Mar-2024 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'jolivet/remove-fortran-return' into 'main'
Fortran: remove unneeded return
Closes #1564
See merge request petsc/petsc!7402
|
| #
849a9ca3
|
| 23-Mar-2024 |
Pierre Jolivet <pierre@joliv.et> |
Fortran: remove unneeded return
|
| #
c7fbd2bd
|
| 02-Feb-2024 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'barry/2024-01-19/typedef-snes-functions' into 'main'
add typedef for functions passed to SNESSetFunction() etc to match approach in TS
See merge request petsc/petsc!7206
|
| #
9bcc50f1
|
| 20-Jan-2024 |
Barry Smith <bsmith@mcs.anl.gov> |
add typedef for functions passed to SNESSetFunction() etc to match approach in TS
I never liked Jed's use of typedef for function prototypes for a couple of reasons
1) you don't see immediately tha
add typedef for functions passed to SNESSetFunction() etc to match approach in TS
I never liked Jed's use of typedef for function prototypes for a couple of reasons
1) you don't see immediately that the argument to the function is a function pointer instead of standard variable when looking at source 2) you don't see at the exact location in the code the prototype of the function being passed in
but there is something to say for using these typedefs so
I've prototyped the change for SNES but slightly differently than what Jed did for TS
1) I append the typedef with _Ftn to mark that it is a function (helping to relieve the problem 1 above) 2) I made the typedef to be for a function, not a function pointer so it can also be used directly for things like
PETSC_EXTERN SNESJacobian_Ftn SNESComputeJacobianDefault;
I think the TS usage could be switched to this style without user code breakage, and deprecate the current TS typedef
Thoughts?
Just do SNES the same way as TS and live with less clarity?
show more ...
|
| #
6c37f76f
|
| 27-Jul-2023 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'tisaac/feature-log-handler' into 'main'
Deglobalize logging into PetscLogHandler and PetscLogState
See merge request petsc/petsc!6709
|
| #
2611ad71
|
| 14-Jul-2023 |
Toby Isaac <toby.isaac@gmail.com> |
Profiling: Improve !defined(PETSC_USE_LOG) #defines
- If we cast macro arguments to void, we can avoid unused errors that have forced lots of conditionally included code like this:
```c #if def
Profiling: Improve !defined(PETSC_USE_LOG) #defines
- If we cast macro arguments to void, we can avoid unused errors that have forced lots of conditionally included code like this:
```c #if defined(PETSC_USE_LOG) PetscLogEvent event; #endif ```
- Having global counters like petsc_TotalFlops externed event if !PetscDefined(USE_LOG) helps to remove a lot of needless `#ifdef`s around code that can instead be placed in `if (PetscDefined(USE_LOG)) {}` blocks.
show more ...
|
| #
c72397d7
|
| 25-May-2023 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'barry/2023-05-14/add-fortran-petsccheck' into 'main'
Add PetscCheck() and PetscCheckA() for Fortran
See merge request petsc/petsc!6464
|
| #
dcb3e689
|
| 14-May-2023 |
Barry Smith <bsmith@mcs.anl.gov> |
Add PetscCheck() and PetscCheckA() for Fortran
Also fix incorrect use of " in Fortran examples that should be '
|
| #
18290094
|
| 15-Jan-2023 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'barry/2022-12-27/rm-vecgetarray-fortran-examples' into 'main'
Replace use of VecGetArray() and friends from Fortran examples and docs
See merge request petsc/petsc!5950
|
| #
42ce371b
|
| 28-Dec-2022 |
Barry Smith <bsmith@mcs.anl.gov> |
Update examples to use VecGetArrayF90() and similar routines instead of VecGetArray() and similar routines
Commit-type: housekeeping /spend 2h
|
| #
540c0c32
|
| 02-Jun-2022 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'barry/2022-05-24/add-petsccall-fortran-examples' into 'main'
Update all Fortran examples to modern error checking with PetscCallXXX() wrappers around PETSc/MPI function calls.
See mer
Merge branch 'barry/2022-05-24/add-petsccall-fortran-examples' into 'main'
Update all Fortran examples to modern error checking with PetscCallXXX() wrappers around PETSc/MPI function calls.
See merge request petsc/petsc!5271
show more ...
|
| #
d8606c27
|
| 24-May-2022 |
Barry Smith <bsmith@mcs.anl.gov> |
Add modern error checking to rest of Fortran examples
/spend 2.5h
|