1: #include <petsc/private/fortranimpl.h> 2: #include <petscmat.h> 4: #if defined(PETSC_HAVE_FORTRAN_CAPS) 5: #define matpythonsettype_ MATPYTHONSETTYPE 6: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) 7: #define matpythonsettype_ matpythonsettype 8: #endif 10: PETSC_EXTERN void matpythonsettype_(Mat *mat, char *name, PetscErrorCode *ierr, PETSC_FORTRAN_CHARLEN_T len) 11: { 12: char *t; 13: FIXCHAR(name, len, t); 14: *ierr = MatPythonSetType(*mat, t); 15: if (*ierr) return; 16: FREECHAR(name, t); 17: }