#include "petscksp.h" PetscErrorCode PCMGSetNumberSmoothUp(PC pc,PetscInt n)Logically Collective on PC
mg | - the multigrid context | |
n | - the number of smoothing steps |
Notes: this does not set a value on the coarsest grid, since we assume that there is no separate smooth up on the coarsest grid.
If the number of smoothing steps is changed in this call then the PCMGGetSmoothUp() will be called and now the up smoother will no longer share the same KSP object as the down smoother. Use PCMGSetNumberSmooth() to set the same number of smoothing steps for pre and post smoothing.
Level:advanced
Location:src/ksp/pc/impls/mg/mg.c
Index of all PCMG routines
Table of Contents for all manual pages
Index of all manual pages