# DMAdaptorSetSequenceLength
Sets the number of sequential adaptations 
## Synopsis
```
#include "petscdmadaptor.h" 
PetscErrorCode DMAdaptorSetSequenceLength(DMAdaptor adaptor, PetscInt num)
```
Not collective


## Input Parameters

- ***adaptor -*** The `DMAdaptor` object
- ***num -*** The number of adaptations





## See Also
 `DMAdaptorGetSequenceLength()`, `DMAdaptorCreate()`, `DMAdaptorAdapt()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/snes/utils/dmadapt.c.html#DMAdaptorSetSequenceLength">src/snes/utils/dmadapt.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/snes/utils/dmadapt.c)


[Index of all SNES routines](index.md)  
[Table of Contents for all manual pages](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
