:orphan:
# PCMGMultiplicativeSetCycles
Sets the number of cycles to use for each preconditioner step of multigrid when `PCMGType` is `PC_MG_MULTIPLICATIVE` 
## Synopsis
```
#include "petscksp.h" 
PetscErrorCode PCMGMultiplicativeSetCycles(PC pc, PetscInt n)
```
Logically Collective


## Input Parameters

- ***pc -*** the multigrid context
- ***n -*** number of cycles (default is 1)



## Options Database Key

- ***-pc_mg_multiplicative_cycles n -*** set the number of cycles





## Note
This is not associated with setting a v or w cycle, that is set with `PCMGSetCycleType()`


## See Also
 `PCMGSetCycleTypeOnLevel()`, `PCMGSetCycleType()`, `PCMGCycleType`, `PCMGType`

## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/pc/impls/mg/mg.c.html#PCMGMultiplicativeSetCycles">src/ksp/pc/impls/mg/mg.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/ksp/pc/impls/mg/mg.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)  
