#include #include #include #if defined(PETSC_HAVE_FORTRAN_CAPS) #define matnullspacegetvecs_ MATNULLSPACEGETVECS #define matnullspaceview_ MATNULLSPACEVIEW #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) #define matnullspacegetvecs_ matnullspacegetvecs #define matnullspaceview_ matnullspaceview #endif PETSC_EXTERN void PETSC_STDCALL matnullspacegetvecs_(MatNullSpace *sp,PetscBool *HAS_CNST,PetscInt *N, Vec *VECS,PetscErrorCode *ierr) { PetscBool has_cnst; PetscInt i,n; const Vec *vecs; CHKFORTRANNULLBOOL(HAS_CNST); CHKFORTRANNULLINTEGER(N); CHKFORTRANNULLOBJECT(VECS); *ierr = MatNullSpaceGetVecs(*sp, &has_cnst, &n, &vecs); if (HAS_CNST) { *HAS_CNST = has_cnst; } if (N) { *N = n; } if (VECS) { for (i=0; i