PCMGRegisterCoarseSpaceConstructor#

Adds a method to the PCMG package for coarse space construction.

Synopsis#

#include "petscksp.h" 
PetscErrorCode PCMGRegisterCoarseSpaceConstructor(const char name[], PCMGCoarseSpaceConstructorFn *function)

Not Collective, No Fortran Support

Input Parameters#

Developer Notes#

This is used by PCMG_ADAPT_EIGENVECTOR and PCMG_ADAPT_GENERALIZED_EIGENVECTOR to utilize the BAMG package

PCMGSetAdaptCoarseSpaceType() and PCMGCoarseSpaceType should be refactored to use the standard PETSc registration of types as strings instead of incorrectly using an enum for PCMGCoarseSpaceType and thus requiring this ad hoc nonstandard registration process for BAMG.

See Also#

KSP: Linear System Solvers, PCMGCoarseSpaceConstructorFn, PCMG, PCMGGetCoarseSpaceConstructor(), PCRegister(), PCMGSetAdaptCoarseSpaceType(), PCMG_ADAPT_EIGENVECTOR, PCMG_ADAPT_GENERALIZED_EIGENVECTOR

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