Actual source code: pythonts.c
petsc-3.3-p7 2013-05-11
1: #include <petsc-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: {
29: PetscTryMethod(ts,"TSPythonSetType_C",(TS, const char[]),(ts,pyname));
30: return(0);
31: }