petsc-3.8.4 2018-03-24
Report Typos and Errors

PCMGSetNumberSmooth

Sets the number of pre and post-smoothing steps to use on all levels. Use PCMGSetSmoothUp() and PCMGSetSmoothDown() set different numbers of pre ad post-smoothing steps

Synopsis

#include "petscksp.h" 
PetscErrorCode  PCMGSetNumberSmooth(PC pc,PetscInt n)
Logically Collective on PC

Input Parameters

mg - the multigrid context
n - the number of smoothing steps

Options Database Key

-mg_levels_ksp_max_it <n> - Sets number of pre and post-smoothing steps
-pc_mg_smooth_down <n> - Sets number of pre-smoothing steps (if setting different pre and post amounts)
-pc_mg_smooth_up <n> - Sets number of post-smoothing steps (if setting different pre and post amounts)

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.

Keywords

MG, smooth, up, post-smoothing, steps, multigrid

See Also

PCMGSetNumberSmoothDown(), PCMGSetNumberSmoothUp()

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