1: #include <petsc/private/fortranimpl.h> 2: #include <petscpc.h> 4: #if defined(PETSC_HAVE_FORTRAN_CAPS) 5: #define pcpythonsettype_ PCPYTHONSETTYPE 6: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) 7: #define pcpythonsettype_ pcpythonsettype 8: #endif 10: PETSC_EXTERN void pcpythonsettype_(PC *pc, char *name, PetscErrorCode *ierr, PETSC_FORTRAN_CHARLEN_T len) 11: { 12: char *t; 13: FIXCHAR(name, len, t); 14: *ierr = PCPythonSetType(*pc, t); 15: if (*ierr) return; 16: FREECHAR(name, t); 17: }