Fortran 2008 has unlimited polymorphic/'*'
Fortran is always F2003: removed leftovers
place all the include statements at the topRepeated inclusion in multiple location, e.g. at the start of amodule or function is not needed. This becomes clear if all includes areoutside of the ac
place all the include statements at the topRepeated inclusion in multiple location, e.g. at the start of amodule or function is not needed. This becomes clear if all includes areoutside of the actual Fortran code.Added regex to check that with the help of @sbalay
show more ...
Run fprettify
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 modulesCo-authored-by: Jose E. Roman <jroman@dsic.upv.es>
DMSwarm: Allow multiple fields to define the DM field and multiple cellDM, allow different coordinate fields, and compute moments- Changed interface for DMSwarmVectorDefineField() and DMSwarmVectorG
DMSwarm: Allow multiple fields to define the DM field and multiple cellDM, allow different coordinate fields, and compute moments- Changed interface for DMSwarmVectorDefineField() and DMSwarmVectorGetField() to allow multiple fields- Add DMSwarmReplace_Internal()- Add coordinate name to Swarm- Add DMSwarmGetCoordinateField() and DMSwarmSetCoordinateField()- Add DMSwarmComputeMoments()- In DMLocatePoints_Plex(), ignore extra coordinates in input vector- Add CellDMInfo struct- Add DMSwarmPushCellDM() and DMSwarmPopCellDM()
plex: Print out labels in sorted stratum order
This requires some changes to user FORTRAN codePass PETSC_NULL_XXX_ARRAY when passing a NULL as an argument that is expecting an arrayPass PETSC_NULL_ENUM when argument returns an enum instead of
This requires some changes to user FORTRAN codePass PETSC_NULL_XXX_ARRAY when passing a NULL as an argument that is expecting an arrayPass PETSC_NULL_ENUM when argument returns an enum instead of PETSC_NULL_INTEGERPass arrays (and not scalar values) when the argument is expecting an array; this means replace, for example, the argument v with [v]Use PetscObjectIsNull(obj) to check if the object is NULL, instead of obj == PETSC_NULL_XXXThe compiler will now automatically prevent you from using the wrong argument type for the first three bullets aboveThis will also require an update sowing with the new sowing branch this MR is using.
Swarm: Add continuous DM argument to DMSwarmProjectFields()
Use < instead of " for includes of PETSc include filesAnd Remove unneeded duplicate includesCo-Authored-by: Jose Roman <jroman@dsic.upv.es>
Remove MANSEC from makefiles it is not needed in, tutorials and tests
Swarm: Fixed examples for new projection interface
Remove need for seperate lib/petsc/conf/test file by merging with rules fileCommit-type: maintainability
Remove unneeded declarations of LOCDIR from all the makefilesCommit-type:documentation
source code format changes due to .clang-format changes
Remove braces from one-liners w/o PetscCall()
clang-format: convert PETSc sources to comply with clang-format
Add PetscFunctionBeginUser to all PETSc C/C++ examplesNow the stack frames will contain the main program and the correct line numbers in themgit ls-files | egrep "(tutorials|tests)" | xargs sed -
Add PetscFunctionBeginUser to all PETSc C/C++ examplesNow the stack frames will contain the main program and the correct line numbers in themgit ls-files | egrep "(tutorials|tests)" | xargs sed -i "s?\(PetscCall(PetscInitialize(&argc\)?PetscFunctionBeginUser;\n \1?g"Commit-type: error-checking, testing-fix/spend 15m
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
Merge remote-tracking branch 'origin/release'
Fix compile issues with win32/ifort and --with-shared-libraries
Add modern error checking to rest of Fortran examples/spend 2.5h
remove garbage from makefilesIncluding * unused FLAGS variables * All: lib that did not work * stray blank lines etcCommit-type: housekeeping/spend 1h
Remove extra spaces and unwanted plurals
Enable PETSC_ATTRIBUTE_FORMAT()
12