1 #include <petsc-private/fortranimpl.h> 2 #include <petscmat.h> 3 4 #if defined(PETSC_HAVE_FORTRAN_CAPS) 5 #define matcreatenest_ MATCREATENEST 6 #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) 7 #define matcreatenest_ matcreatenest 8 #endif 9 10 PETSC_EXTERN_C void PETSC_STDCALL matcreatenest_(MPI_Fint *comm,PetscInt *nr,IS is_row[],PetscInt *nc,IS is_col[],Mat a[],Mat *B,int *ierr) 11 { 12 CHKFORTRANNULLOBJECT(is_row); 13 CHKFORTRANNULLOBJECT(is_col); 14 *ierr = MatCreateNest(MPI_Comm_f2c(*comm),*nr,is_row,*nc,is_col,a,B); 15 } 16