PCMGGetGridComplexity#

compute operator and grid complexity of the PCMG hierarchy

Synopsis#

#include "petscksp.h" 
PetscErrorCode PCMGGetGridComplexity(PC pc, PetscReal *gc, PetscReal *oc)

Input Parameter#

  • pc - the preconditioner context

Output Parameters#

  • gc - grid complexity, \(\frac{\sum_i n_i}{n_0}\), where \(n_0\) is the number of unknowns on the finest grid

  • oc - operator complexity, \(\frac{\sum_i nnz_i}{nnz_0}\), where \(nnz_0\) is the number of nonzeros on the finest grid

See Also#

KSP: Linear System Solvers, PCMG, PCMGGetLevels(), PCMGSetLevels()

Level#

advanced

Location#

src/ksp/pc/impls/mg/mg.c


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