:orphan: # PCHPDDMSetSTShareSubKSP Sets whether the `KSP` in SLEPc `ST` and the fine-level subdomain solver should be shared. ## Synopsis ``` #include "petscpc.h" PetscErrorCode PCHPDDMSetSTShareSubKSP(PC pc, PetscBool share) ``` ## Input Parameters - ***pc -*** preconditioner context - ***share -*** whether the `KSP` should be shared or not ## Note This is not the same as `PCSetReusePreconditioner()`. Given certain conditions (visible using -info), a symbolic factorization can be skipped when using a subdomain `PCType` such as `PCLU` or `PCCHOLESKY`. ## See Also `PCHPDDM`, `PCHPDDMGetSTShareSubKSP()` ## Level advanced ## Location src/ksp/pc/impls/hpddm/pchpddm.cxx ## Examples src/ksp/ksp/tutorials/ex76.c
## Implementations PCHPDDMSetSTShareSubKSP_HPDDM in src/ksp/pc/impls/hpddm/pchpddm.cxx
--- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/ksp/pc/impls/hpddm/pchpddm.cxx) [Index of all PC routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)