Actual source code: pythonsnes.c

petsc-master 2019-07-18
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: .seealso: SNESCreate(), SNESSetType(), SNESPYTHON, PetscPythonInitialize()
 18: @*/
 19: PetscErrorCode  SNESPythonSetType(SNES snes,const char pyname[])
 20: {

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