PCGetCoarseOperators#

Gets coarse operator matrices for all levels (except the finest level)

Synopsis#

#include "petscksp.h" 
PetscErrorCode PCGetCoarseOperators(PC pc, PetscInt *num_levels, Mat *coarseOperators[])

Logically Collective

Input Parameter#

  • pc - the precondition context

Output Parameters#

  • num_levels - the number of levels

  • coarseOperators - the coarse operator matrices (size of num_levels-1)

Developer Note#

Why is this here instead of in PCMG etc?

See Also#

PC, PCMG, PCMGGetRestriction(), PCMGSetInterpolation(), PCMGGetRScale(), PCMGGetInterpolation(), PCGetInterpolations()

Level#

advanced

Location#

src/ksp/pc/interface/precon.c

Implementations#

PCGetCoarseOperators_BoomerAMG in src/ksp/pc/impls/hypre/hypre.c
PCGetCoarseOperators_MG in src/ksp/pc/impls/mg/mg.c


Edit on GitLab

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