1: #include <petsc/private/fortranimpl.h>
2: #include <petsctao.h>
4: #if defined(PETSC_HAVE_FORTRAN_CAPS)
5: #define taopythonsettype_ TAOPYTHONSETTYPE
6: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE)
7: #define taopythonsettype_ taopythonsettype
8: #endif
10: PETSC_EXTERN void taopythonsettype_(Tao *tao, char *name, PetscErrorCode *ierr, PETSC_FORTRAN_CHARLEN_T len)
11: {
12: char *t;
13: FIXCHAR(name, len, t);
14: *ierr = TaoPythonSetType(*tao, t);
15: if (*ierr) return;
16: FREECHAR(name, t);
17: }