1: #include <petsc/private/fortranimpl.h> 2: #include <petscts.h> 4: #if defined(PETSC_HAVE_FORTRAN_CAPS) 5: #define tspythonsettype_ TSPYTHONSETTYPE 6: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) 7: #define tspythonsettype_ tspythonsettype 8: #endif 10: PETSC_EXTERN void tspythonsettype_(TS *ts, char *name, PetscErrorCode *ierr, PETSC_FORTRAN_CHARLEN_T len) 11: { 12: char *t; 13: FIXCHAR(name, len, t); 14: *ierr = TSPythonSetType(*ts, t); 15: if (*ierr) return; 16: FREECHAR(name, t); 17: }