1 #include <petsc-private/fortranimpl.h> 2 #include <petscmat.h> 3 #include <petscviewer.h> 4 5 #if defined(PETSC_HAVE_FORTRAN_CAPS) 6 #define matnullspaceview_ MATNULLSPACEVIEW 7 #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) 8 #define matnullspaceview_ matnullspaceview 9 #endif 10 11 PETSC_EXTERN void PETSC_STDCALL matnullspaceview_(MatNullSpace *sp,PetscViewer *vin,PetscErrorCode *ierr) 12 { 13 PetscViewer v; 14 PetscPatchDefaultViewers_Fortran(vin,v); 15 *ierr = MatNullSpaceView(*sp,v); 16 } 17 18