1 /* Author: Lisandro Dalcin */ 2 /* Contact: dalcinl@gmail.com */ 3 4 #if !defined(PETSC4PY_H) 5 #define PETSC4PY_H 6 7 #include <Python.h> 8 #include <petsc.h> 9 10 #include "../../PETSc_api.h" 11 import_petsc4py(void)12static int import_petsc4py(void) { 13 if (import_petsc4py__PETSc() < 0) goto bad; 14 return 0; 15 bad: 16 return -1; 17 } 18 19 #endif /* !PETSC4PY_H */ 20