1: #define PETSC_USE_FORTRAN_MODULES 3: module petscmatdef 4: use petscvecdef 5: #include <petsc/finclude/petscmat.h> 6: #include <petsc/finclude/ftn-custom/petscmatdef.h90> 7: end module 9: module petscmat 10: use petscmatdef 11: use petscvec 12: #include <petsc/finclude/petscmat.h90> 13: end module