| #
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
|
| #
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
|
| #
3868eb11
|
| 07-Jul-2025 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'MarDiehl/Fortran-use-ISO_C_BINDING' into 'main'
include ISO_C_BINDING
See merge request petsc/petsc!8481
|
| #
fe66ebcc
|
| 18-Jun-2025 |
Martin Diehl <mail@martin-diehl.net> |
use integer and real kinds from ISO_C_binding
The kinds in this module are guaranteed to be compatible with the corresponding C types. Requires to include the ISO_C_binding module in interfaces and
use integer and real kinds from ISO_C_binding
The kinds in this module are guaranteed to be compatible with the corresponding C types. Requires to include the ISO_C_binding module in interfaces and stray functions
show more ...
|
| #
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 ...
|
| #
95358afd
|
| 22-Aug-2022 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'barry/2022-08-22/rm-common-block-examples' into 'main'
Remove last three Fortran examples that use common blocks (and include files for the common blocks)
See merge request petsc/pets
Merge branch 'barry/2022-08-22/rm-common-block-examples' into 'main'
Remove last three Fortran examples that use common blocks (and include files for the common blocks)
See merge request petsc/petsc!5542
show more ...
|
| #
77d968b7
|
| 22-Aug-2022 |
Barry Smith <bsmith@mcs.anl.gov> |
Name all modules in Fortran examples consistently with examplenamemodule to
* prevent conflicts between examples * to make it easy to determine which module files generated in the filesystem are for
Name all modules in Fortran examples consistently with examplenamemodule to
* prevent conflicts between examples * to make it easy to determine which module files generated in the filesystem are for each example
Commit-type: housekeeping /spend 20m Thanks-to: Satish Balay
show more ...
|
| #
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
|
| #
527ad957
|
| 11-Apr-2022 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'barry/2022-04-01/fix-petsc-options-begin-end/release' into 'main'
Remove bogus error returns from Begin/End() macros
See merge request petsc/petsc!5069
|
| #
d0609ced
|
| 02-Apr-2022 |
Barry Smith <bsmith@mcs.anl.gov> |
Cleanup of introduction of PetscCall()
* remove bogus error flags from XXXBegin()/End() macros such as PetscOptionsBegin()/End()
* rename for consistency certain XXXBegin()/End() macros such as Mat
Cleanup of introduction of PetscCall()
* remove bogus error flags from XXXBegin()/End() macros such as PetscOptionsBegin()/End()
* rename for consistency certain XXXBegin()/End() macros such as MatPreallocateInitialize()/Finalize()
* fix many lingering ierr = XXX that arose from multiline function calls
* sync slepc/hpddm - to use snapshots with the same changes
Commit-type: error-checking, style-fix /spend 8h
show more ...
|
| #
b3667271
|
| 09-Apr-2022 |
Satish Balay <balay@mcs.anl.gov> |
Merge remote-tracking branch 'origin/release'
|
| #
f475bb4c
|
| 08-Apr-2022 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'jose/release/restore-chkerrq-fortran' into 'release'
Restore use of CHKERRQ in *.F90 examples
See merge request petsc/petsc!5088
|
| #
ba213955
|
| 06-Apr-2022 |
Jose E. Roman <jroman@dsic.upv.es> |
Restore use of CHKERRQ in *.F90 examples
|
| #
f882803c
|
| 26-Mar-2022 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'jacobf/2022-02-23/variadic-chkerr' into 'main'
Variadic CHKERRQ()
See merge request petsc/petsc!4889
|
| #
9566063d
|
| 25-Mar-2022 |
Jacob Faibussowitsch <jacob.fai@gmail.com> |
The great renaming:
- CHKERRQ() -> PetscCall() - CHKERRV() -> PetscCallVoid() - CHKERRMPI() -> PetscCallMPI() - CHKERRABORT() -> PetscCallAbort() - CHKERRCONTINUE() -> PetscCallContinue() - CHKERRXX
The great renaming:
- CHKERRQ() -> PetscCall() - CHKERRV() -> PetscCallVoid() - CHKERRMPI() -> PetscCallMPI() - CHKERRABORT() -> PetscCallAbort() - CHKERRCONTINUE() -> PetscCallContinue() - CHKERRXX() -> PetscCallThrow() - CHKERRCXX() -> PetscCallCXX() - CHKERRCUDA() -> PetscCallCUDA() - CHKERRCUBLAS() -> PetscCallCUBLAS() - CHKERRCUSPARSE() -> PetscCallCUSPARSE() - CHKERRCUSOLVER() -> PetscCallCUSOLVER() - CHKERRCUFFT() -> PetscCallCUFFT() - CHKERRCURAND() -> PetscCallCURAND() - CHKERRHIP() -> PetscCallHIP() - CHKERRHIPBLAS() -> PetscCallHIPBLAS() - CHKERRHIPSOLVER() -> PetscCallHIPSOLVER() - CHKERRQ_CEED() -> PetscCallCEED() - CHKERR_FORTRAN_VOID_FUNCTION() -> PetscCallFortranVoidFunction() - CHKERRMKL() -> PetscCallMKL() - CHKERRMMG() -> PetscCallMMG() - CHKERRMMG_NONSTANDARD() -> PetscCallMMG_NONSTANDARD() - CHKERRCGNS() -> PetscCallCGNS() - CHKERRPTSCOTCH() -> PetscCallPTSCOTCH() - CHKERRSTR() -> PetscCallSTR() - CHKERRTC() -> PetscCallTC()
show more ...
|
| #
16924cb1
|
| 26-Aug-2020 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'barry/2020-08-16/fix-source-formatting' into 'master'
Turn on checkbadSource test to generate an error when found; fix all source code that causes errors
See merge request petsc/petsc
Merge branch 'barry/2020-08-16/fix-source-formatting' into 'master'
Turn on checkbadSource test to generate an error when found; fix all source code that causes errors
See merge request petsc/petsc!3064
show more ...
|
| #
2da392cc
|
| 17-Aug-2020 |
Barry Smith <bsmith@mcs.anl.gov> |
Turn on checkbadSource test to generate an error when found; fix all source code that causes errors
Commit-type: portability-fix, testing-fix, style-fix, feature, maintainability /spend 1.5h
|
| #
c20d7725
|
| 22-Mar-2020 |
Jed Brown <jed@jedbrown.org> |
Merge branch 'jed/promote-examples-tests-tutorials' [petsc/petsc!2610]
* jed/promote-examples-tests-tutorials: Promote examples/{tests,tutorials}/ to {tests,tutorials}/
|
| #
c4762a1b
|
| 18-Mar-2020 |
Jed Brown <jed@jedbrown.org> |
Promote examples/{tests,tutorials}/ to {tests,tutorials}/
This shortens paths and improves consistency between test target names and paths to the source and output files. Most of the work was compl
Promote examples/{tests,tutorials}/ to {tests,tutorials}/
This shortens paths and improves consistency between test target names and paths to the source and output files. Most of the work was completed by this script, followed by mild cleanup of nonconforming cases.
for makefile in `git ls-files 'src/*makefile'`; do if rg -q 'DIRS.*\bexamples\b' $makefile; then base=$(dirname $makefile) dirs=$(cd $base/examples && ls -d tests tutorials 2>/dev/null | xargs echo) perl -pi -e "s#^(DIRS.*)\bexamples\b#\1${dirs}#" $makefile git rm $base/examples/makefile for t in $dirs; do git mv $base/examples/$t $base/ perl -pi -e "s#^(LOCDIR[[:space:]]*=).*#\1 $base/$t/#" $base/$t done fi done
git grep -l -E -z 'examples/(tutorials|tests)' | xargs -0 perl -pi -e 's#examples/(tutorials|tests)#\1#g' git checkout @ \ src/docs/website/documentation/changes/ \ src/benchmarks/results/
show more ...
|