Date: 2021-03-03T22:27:53+00:00

Actual source code: pythonts.c
petsc-3.14.5 2021-03-03
Report Typos and Errors

      1: #include <petsc/private/tsimpl.h>

      3: /*@C
      4:    TSPythonSetType - Initalize a TS object implemented in Python.

      6:    Collective on TS

      8:    Input Parameter:
      9: +  ts - the nonlinear solver (TS) context.
     10: -  pyname - full dotted Python name [package].module[.{class|function}]

     12:    Options Database Key:
     13: .  -ts_python_type <pyname>

     15:    Level: intermediate

     17: .seealso: TSCreate(), TSSetType(), TSPYTHON, PetscPythonInitialize()
     18: @*/
     19: PetscErrorCode  TSPythonSetType(TS ts,const char pyname[])
     20: {

     26:   PetscTryMethod(ts,"TSPythonSetType_C",(TS, const char[]),(ts,pyname));
     27:   return(0);
     28: }