Actual source code: pythonksp.c

petsc-3.8.2 2017-11-09
Report Typos and Errors
  1:  #include <petsc/private/kspimpl.h>

  3: /*@C
  4:    KSPPythonSetType - Initalize a KSP object implemented in Python.

  6:    Collective on KSP

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

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

 15:    Level: intermediate

 17: .keywords: KSP, Python

 19: .seealso: KSPCreate(), KSPSetType(), KSPPYTHON, PetscPythonInitialize()
 20: @*/
 21: PetscErrorCode  KSPPythonSetType(KSP ksp,const char pyname[])
 22: {

 28:   PetscTryMethod(ksp,"KSPPythonSetType_C",(KSP, const char[]),(ksp,pyname));
 29:   return(0);
 30: }