#include /*I "petscpc.h" I*/ /*@ PCPythonSetType - Initialize a `PC` object implemented in Python, a `PCPYTHON`. Collective Input Parameters: + pc - the preconditioner (`PC`) context. - pyname - full dotted Python name [package].module[.{class|function}] Options Database Key: . -pc_python_type - python class Level: intermediate .seealso: [](ch_ksp), `PC`, `PCSHELL`, `PCCreate()`, `PCSetType()`, `PCPYTHON`, `PetscPythonInitialize()` @*/ PetscErrorCode PCPythonSetType(PC pc, const char pyname[]) { PetscFunctionBegin; PetscValidHeaderSpecific(pc, PC_CLASSID, 1); PetscAssertPointer(pyname, 2); PetscTryMethod(pc, "PCPythonSetType_C", (PC, const char[]), (pc, pyname)); PetscFunctionReturn(PETSC_SUCCESS); } /*@ PCPythonGetType - Get the type of a `PC` object implemented in Python, a `PCPYTHON`. Not Collective Input Parameter: . pc - the preconditioner (`PC`) context. Output Parameter: . pyname - full dotted Python name [package].module[.{class|function}] Level: intermediate .seealso: [](ch_ksp), `PC`, `PCSHELL`, `PCCreate()`, `PCSetType()`, `PCPYTHON`, `PetscPythonInitialize()`, `PCPythonSetType()` @*/ PetscErrorCode PCPythonGetType(PC pc, const char *pyname[]) { PetscFunctionBegin; PetscValidHeaderSpecific(pc, PC_CLASSID, 1); PetscAssertPointer(pyname, 2); PetscUseMethod(pc, "PCPythonGetType_C", (PC, const char *[]), (pc, pyname)); PetscFunctionReturn(PETSC_SUCCESS); }