# PetscSequentialPhaseEnd
Ends a sequential section of code. 
## Synopsis
```
#include "petscsys.h"  
PetscErrorCode PetscSequentialPhaseEnd(MPI_Comm comm, int ng)
```
Collective


## Input Parameters

- ***comm -*** Communicator to sequentialize.
- ***ng   -*** Number in processor group.  This many processes are allowed to execute
at the same time (usually 1)





## Note
See `PetscSequentialPhaseBegin()` for more details.


## See Also
 `PetscSequentialPhaseBegin()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/utils/mpiu.c.html#PetscSequentialPhaseEnd">src/sys/utils/mpiu.c</A>


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


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