1: #include "private/tsimpl.h" /*I "petscts.h" I*/
5: /*@C
6: TSPythonSetType - Initalize a TS object implemented in Python.
8: Collective on TS
10: Input Parameter:
11: + ts - the nonlinear solver (TS) context.
12: - pyname - full dotted Python name [package].module[.{class|function}]
14: Options Database Key:
15: . -ts_python_type <pyname>
17: Level: intermediate
19: .keywords: TS, Python
21: .seealso: TSCreate(), TSSetType(), TSPYTHON, PetscPythonInitialize()
22: @*/
23: PetscErrorCode TSPythonSetType(TS ts,const char pyname[])
24: {
25: PetscErrorCode (*f)(TS, const char[]) = 0;
30: PetscObjectQueryFunction((PetscObject)ts,"TSPythonSetType_C",
31: (PetscVoidFunction*)&f);
32: if (f) {(*f)(ts,pyname);}
33: return(0);
34: }