Lines Matching full:python
4 #define PETSC_PYTHON_EXE "python"
12 /* get the path for the Python interpreter executable */ in PetscPythonFindExecutable()
14 PetscCall(PetscOptionsGetString(NULL, NULL, "-python", pythonexe, len, &flag)); in PetscPythonFindExecutable()
20 …Python does not appear to have a universal way to indicate the location of Python dynamic library …
29 /* call Python to find out the name of the Python dynamic library */ in PetscPythonFindLibraryName()
35 …PetscCheck(fgets(pythonlib, (int)pl, fp), PETSC_COMM_SELF, PETSC_ERR_PLIB, "Python: bad output fro… in PetscPythonFindLibraryName()
38 SETERRQ(PETSC_COMM_SELF, PETSC_ERR_LIB, "Python: Aborted due to missing popen()"); in PetscPythonFindLibraryName()
68 … PetscCall(PetscInfo(NULL, "Looking for Python library with \"%s %s\"\n", pythonexe, cmdlines[i])); in PetscPythonFindLibrary()
72 PetscCall(PetscInfo(NULL, "Python library %s found %d\n", pythonlib, found)); in PetscPythonFindLibrary()
110 /* open the Python dynamic library */ in PetscPythonLoadLibrary()
112 PetscCall(PetscInfo(NULL, "Python: loaded dynamic library %s\n", pythonlib)); in PetscPythonLoadLibrary()
113 /* look required symbols from the Python C-API */ in PetscPythonLoadLibrary()
132 …PetscCheck(Py_None, PETSC_COMM_SELF, PETSC_ERR_LIB, "Python: failed to load symbols from Python dy… in PetscPythonLoadLibrary()
133 …cCheck(Py_GetVersion, PETSC_COMM_SELF, PETSC_ERR_LIB, "Python: failed to load symbols from Python … in PetscPythonLoadLibrary()
134 …eck(Py_IsInitialized, PETSC_COMM_SELF, PETSC_ERR_LIB, "Python: failed to load symbols from Python … in PetscPythonLoadLibrary()
135 …heck(Py_InitializeEx, PETSC_COMM_SELF, PETSC_ERR_LIB, "Python: failed to load symbols from Python … in PetscPythonLoadLibrary()
136 …tscCheck(Py_Finalize, PETSC_COMM_SELF, PETSC_ERR_LIB, "Python: failed to load symbols from Python … in PetscPythonLoadLibrary()
137 …PetscCall(PetscInfo(NULL, "Python: all required symbols loaded from Python dynamic library %s\n", … in PetscPythonLoadLibrary()
146 PetscPythonFinalize - Finalize PETSc for use with Python.
163 PetscPythonInitialize - Initialize Python for use with PETSc and import petsc4py.
166 + pyexe - path to the Python interpreter executable, or `NULL`.
167 - pylib - full path to the Python dynamic library, or `NULL`.
170 . -python <exe> - Initializes Python, and optionally takes a Python executable name
182 /* Python executable */ in PetscPythonInitialize()
188 /* Python dynamic library */ in PetscPythonInitialize()
194 /* dynamically load Python library */ in PetscPythonInitialize()
196 /* initialize Python */ in PetscPythonInitialize()
204 …/* initialize Python. Py_InitializeEx() prints an error and EXITS the program if it is not success… in PetscPythonInitialize()
242 PetscCall(PetscInfo(NULL, "Python initialize completed\n")); in PetscPythonInitialize()
249 PetscCall(PetscInfo(NULL, "Python: successfully imported module 'petsc4py.PETSc'\n")); in PetscPythonInitialize()
253 PetscCall(PetscInfo(NULL, "Python: error when importing module 'petsc4py.PETSc'\n")); in PetscPythonInitialize()
255 …SETERRQ(PETSC_COMM_SELF, PETSC_ERR_PLIB, "Python: could not import module 'petsc4py.PETSc', perhap… in PetscPythonInitialize()
261 PetscPythonPrintError - Print any current Python errors.
285 PetscPythonMonitorSet - Set a Python monitor for a `PetscObject`
298 …ythonMonitorSet_C, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Couldn't initialize Python support for monito… in PetscPythonMonitorSet()