> > I think you're just missing "use petscdmda". That did not help: program main #include <finclude/petscdmdef.h> #include <finclude/petscsnesdef.h> use petscdm use petscdmda use petscsnes use petsc_kkt_solver_module use petsc_kkt_solver_moduleinterfaces ! implicit none