1: #include <petsc/private/fortranimpl.h> 2: #include <petscsnes.h> 4: #if defined(PETSC_HAVE_FORTRAN_CAPS) 5: #define snespythonsettype_ SNESPYTHONSETTYPE 6: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) 7: #define snespythonsettype_ snespythonsettype 8: #endif 10: PETSC_EXTERN void snespythonsettype_(SNES *snes, char *name, PetscErrorCode *ierr, PETSC_FORTRAN_CHARLEN_T len) 11: { 12: char *t; 13: FIXCHAR(name, len, t); 14: *ierr = SNESPythonSetType(*snes, t); 15: if (*ierr) return; 16: FREECHAR(name, t); 17: }