#include "petscksp.h" PetscErrorCode KSPSetOptionsPrefix(KSP ksp,const char prefix[])Logically Collective on KSP
ksp | - the Krylov context | |
prefix | - the prefix string to prepend to all KSP option requests |
For example, to distinguish between the runtime options for two different KSP contexts, one could call
KSPSetOptionsPrefix(ksp1,"sys1_") KSPSetOptionsPrefix(ksp2,"sys2_")
This would enable use of different options for each system, such as
-sys1_ksp_type gmres -sys1_ksp_rtol 1.e-3 -sys2_ksp_type bcgs -sys2_ksp_rtol 1.e-4
Level:advanced
Location:src/ksp/ksp/interface/itcl.c
Index of all KSP routines
Table of Contents for all manual pages
Index of all manual pages