KSPSetDMActive#
Indicates the DM should be used to generate the linear system matrix, the right-hand side vector, and the initial guess
Synopsis#
#include "petscksp.h"
PetscErrorCode KSPSetDMActive(KSP ksp, KSPDMActive active, PetscBool flg)
Logically Collective
Input Parameters#
ksp - the
KSPactive - one of
KSP_DMACTIVE_OPERATOR,KSP_DMACTIVE_RHS, orKSP_DMACTIVE_INITIAL_GUESSflg - use the
DM
Note#
See Also#
KSP: Linear System Solvers, KSP, DM, KSPGetDM(), KSPSetDM(), SNESSetDM(), KSPSetComputeOperators(), KSPSetComputeRHS(), KSPSetComputeInitialGuess()
Level#
intermediate
Location#
Examples#
src/ksp/ksp/tutorials/ex43.c
src/ksp/ksp/tutorials/ex70.c
src/ksp/ksp/tutorials/ex73.c
src/dm/impls/stag/tutorials/ex8.c
src/ksp/ksp/tutorials/ex29.c
src/dm/impls/stag/tutorials/ex4.c
Index of all KSP routines
Table of Contents for all manual pages
Index of all manual pages