# PCHPDDMGetComplexities
Computes the grid and operator complexities. 
## Synopsis
```
#include "petscpc.h" 
static PetscErrorCode PCHPDDMGetComplexities(PC pc, PetscReal *gc, PetscReal *oc)
```

## Input Parameter

- ***pc -*** preconditioner context



## Output Parameters

- ***gc -*** grid complexity = sum_i(m_i) / m_1
- ***oc -*** operator complexity = sum_i(nnz_i) / nnz_1





## See Also
 `PCMGGetGridComplexity()`, `PCHPDDM`, `PCHYPRE`, `PCGAMG`

## Level
advanced

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


---
[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)  
