Date: 2016-07-24T17:12:22+00:00

Actual source code: pythonts.c
petsc-3.7.3 2016-07-24
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: }