# KSPHPDDMGetType
Gets the type of Krylov method used in `KSPHPDDM`. 
## Synopsis
```
#include "petscksp.h" 
PetscErrorCode KSPHPDDMGetType(KSP ksp, KSPHPDDMType *type)
```

## Input Parameter

- ***ksp -*** iterative context



## Output Parameter

- ***type -*** any of gmres, bgmres, cg, bcg, gcrodr, bgcrodr, bfbcg, or preonly





## See Also
 [](chapter_ksp), `KSPCreate()`, `KSPType`, `KSPHPDDMType`, `KSPHPDDMSetType()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/ksp/impls/hpddm/hpddm.cxx.html#KSPHPDDMGetType">src/ksp/ksp/impls/hpddm/hpddm.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>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/ksp/tutorials/ex78.c.html">src/ksp/ksp/tutorials/ex78.c.html</A><BR>

## Implementations

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


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/ksp/ksp/impls/hpddm/hpddm.cxx)


[Index of all KSP routines](index.md)  
[Table of Contents for all manual pages](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
