#include "petscksp.h" PetscErrorCode KSPRegister(const char sname[],PetscErrorCode (*function)(KSP))Not Collective Many br
name_solver | - name of a new user-defined solver Many br | |
routine_create | - routine to create method context Many br |
KSPRegister("my_solver",MySolverCreate);Many br
Then, your solver can be chosen with the procedural interface via Many br
KSPSetType(ksp,"my_solver")or at runtime via the option Many br
-ksp_type my_solver
Many br
Level:advanced
Location:src/ksp/ksp/interface/itcreate.c
Index of all KSP routines
Table of Contents for all manual pages
Index of all manual pages