Actual source code: pythonpc.c
petsc-3.5.4 2015-05-23
1: #include <petsc-private/pcimpl.h> /*I "petscpc.h" I*/
5: /*@C
6: PCPythonSetType - Initalize a PC object implemented in Python.
8: Collective on PC
10: Input Parameter:
11: + pc - the preconditioner (PC) context.
12: - pyname - full dotted Python name [package].module[.{class|function}]
14: Options Database Key:
15: . -pc_python_type <pyname>
17: Level: intermediate
19: .keywords: PC, Python
21: .seealso: PCCreate(), PCSetType(), PCPYTHON, PetscPythonInitialize()
22: @*/
23: PetscErrorCode PCPythonSetType(PC pc,const char pyname[])
24: {
30: PetscTryMethod(pc,"PCPythonSetType_C",(PC, const char[]),(pc,pyname));
31: return(0);
32: }