Date: 2015-10-02T22:27:18+00:00

Actual source code: pythonts.c
petsc-3.6.2 2015-10-02
Report Typos and Errors

      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: {

     30:   PetscTryMethod(ts,"TSPythonSetType_C",(TS, const char[]),(ts,pyname));
     31:   return(0);
     32: }