:orphan:
# PCMGSetCycleTypeOnLevel
Sets the type of cycle (aka cycle index) to run on the specified level. 
## Synopsis
```
#include "petscksp.h" 
PetscErrorCode PCMGSetCycleTypeOnLevel(PC pc, PetscInt l, PCMGCycleType c)
```
Logically Collective


## Input Parameters

- ***pc -*** the multigrid context
- ***l  -*** the level (0 is coarsest)
- ***c  -*** either `PC_MG_CYCLE_V` or `PC_MG_CYCLE_W`





## See Also
 `PCMG`, PCMGCycleType`, `PCMGSetCycleType()`

## Level
advanced

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


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