1: #define PETSC_USE_FORTRAN_MODULES 3: module petscsnesdef 4: use petsckspdef 5: #include <petsc/finclude/petscsnes.h> 6: #include <petsc/finclude/ftn-custom/petscsnesdef.h90> 7: end module 9: module petscsnes 10: use petscsnesdef 11: use petscksp 12: #include <petsc/finclude/petscsnes.h90> 13: end module