Actual source code: pythonksp.c

petsc-master 2019-09-18
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: .seealso: KSPCreate(), KSPSetType(), KSPPYTHON, PetscPythonInitialize()
 18: @*/
 19: PetscErrorCode  KSPPythonSetType(KSP ksp,const char pyname[])
 20: {

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