Actual source code: pythonsnes.c
petsc-3.10.5 2019-03-28
Report Typos and Errors

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

      3: /*@C
      4:    SNESPythonSetType - Initalize a SNES object implemented in Python.

      6:    Collective on SNES

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

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

     15:    Level: intermediate

     17: .keywords: SNES, Python

     19: .seealso: SNESCreate(), SNESSetType(), SNESPYTHON, PetscPythonInitialize()
     20: @*/
     21: PetscErrorCode  SNESPythonSetType(SNES snes,const char pyname[])
     22: {

     28:   PetscTryMethod(snes,"SNESPythonSetType_C",(SNES, const char[]),(snes,pyname));
     29:   return(0);
     30: }