petsc-3.7.1 2016-05-15
KSPSetDMActive
Indicates the DM should be used to generate the linear system matrix and right hand side
Synopsis
#include "petscksp.h"
PetscErrorCode KSPSetDMActive(KSP ksp,PetscBool flg)
Logically Collective on KSP Many br
Input Parameters
| ksp | - the preconditioner context Many br |
| flg | - use the DM Many br |
Notes
By default KSPSetDM() sets the DM as active, call KSPSetDMActive(ksp,PETSC_FALSE); after KSPSetDM(ksp,dm) to not have the KSP object use the DM to generate the matrices. Many br
Many br
See Also
KSPGetDM(), KSPSetDM(), SNESSetDM(), KSPSetComputeOperators(), KSPSetComputeRHS(), KSPSetComputeInitialGuess()
Level:intermediate
Location:src/ksp/ksp/interface/iterativ.c
Index of all KSP routines
Table of Contents for all manual pages
Index of all manual pages
Examples
src/ksp/ksp/examples/tutorials/ex43.c.html