#include "petscksp.h" PetscErrorCode KSPSetOptionsPrefix(KSP ksp,const char prefix[])Logically Collective on KSP Many br
ksp | - the Krylov context Many br | |
prefix | - the prefix string to prepend to all KSP option requests Many br |
For example, to distinguish between the runtime options for two Many brdifferent KSP contexts, one could call Many br
KSPSetOptionsPrefix(ksp1,"sys1_") KSPSetOptionsPrefix(ksp2,"sys2_")Many br
This would enable use of different options for each system, such as Many br
-sys1_ksp_type gmres -sys1_ksp_rtol 1.e-3 -sys2_ksp_type bcgs -sys2_ksp_rtol 1.e-4Many br
Many br
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