:orphan: # PCGAMGRegister Register a `PCGAMG` implementation. ## Synopsis ``` #include "petscpc.h" #include "petscksp.h" PetscErrorCode PCGAMGRegister(PCGAMGType type, PetscErrorCode (*create)(PC)) ``` ## Input Parameters + type - string that will be used as the name of the `PCGAMG` type. - create - function for creating the gamg context. ## See Also `PCGAMGType`, `PCGAMG`, `PCGAMGSetType()` ## Level developer ## Location src/ksp/pc/impls/gamg/gamg.c --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/ksp/pc/impls/gamg/gamg.c) [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)