# PCHPDDMGetSTShareSubKSP
Gets whether the `KSP` in SLEPc `ST` and the fine-level subdomain solver is shared. 
## Synopsis
```
#include "petscpc.h" 
PetscErrorCode PCHPDDMGetSTShareSubKSP(PC pc, PetscBool *share)
```

## Input Parameter

- ***pc -*** preconditioner context



## Output Parameter

- ***share -*** whether the `KSP` is shared or not



## Note
This is not the same as `PCGetReusePreconditioner()`. The return value is unlikely to be true, but when it is, a symbolic factorization can be skipped
when using a subdomain `PCType` such as `PCLU` or `PCCHOLESKY`.




## See Also
 `PCHPDDM`

## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/pc/impls/hpddm/pchpddm.cxx.html#PCHPDDMGetSTShareSubKSP">src/ksp/pc/impls/hpddm/pchpddm.cxx</A>

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/ksp/tutorials/ex76.c.html">src/ksp/ksp/tutorials/ex76.c.html</A><BR>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/pc/impls/hpddm/pchpddm.cxx.html#PCHPDDMGetSTShareSubKSP_HPDDM">PCHPDDMGetSTShareSubKSP_HPDDM in src/ksp/pc/impls/hpddm/pchpddm.cxx</A><BR>


---
[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](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
