Actual source code: pythonpc.c
petsc-3.10.5 2019-03-28
1: #include <petsc/private/pcimpl.h>
3: /*@C
4: PCPythonSetType - Initalize a PC object implemented in Python.
6: Collective on PC
8: Input Parameter:
9: + pc - the preconditioner (PC) context.
10: - pyname - full dotted Python name [package].module[.{class|function}]
12: Options Database Key:
13: . -pc_python_type <pyname>
15: Level: intermediate
17: .keywords: PC, Python
19: .seealso: PCCreate(), PCSetType(), PCPYTHON, PetscPythonInitialize()
20: @*/
21: PetscErrorCode PCPythonSetType(PC pc,const char pyname[])
22: {
28: PetscTryMethod(pc,"PCPythonSetType_C",(PC, const char[]),(pc,pyname));
29: return(0);
30: }