:orphan: # 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 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)