KSPHPDDMGetType — PETSc 3.25.1 documentation

Skip to main content
`Ctrl`+`K`

# 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

KSP: Linear System Solvers, `KSPCreate()`, `KSPType`, `KSPHPDDMType`, `KSPHPDDMSetType()`

## Level

intermediate

## Location

src/ksp/ksp/impls/hpddm/hpddm.cxx

## Examples

src/ksp/ksp/tutorials/ex76.c
src/ksp/ksp/tutorials/ex78.c

## Implementations

KSPHPDDMGetType_HPDDM() in src/ksp/ksp/impls/hpddm/hpddm.cxx

Index of all KSP routines
Table of Contents for all manual pages
Index of all manual pages