Actual source code: pythonpc.c
petsc-3.13.6 2020-09-29
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: .seealso: PCCreate(), PCSetType(), PCPYTHON, PetscPythonInitialize()
18: @*/
19: PetscErrorCode PCPythonSetType(PC pc,const char pyname[])
20: {
26: PetscTryMethod(pc,"PCPythonSetType_C",(PC, const char[]),(pc,pyname));
27: return(0);
28: }