:orphan:
# PetscSectionCompare
Compares two sections 
## Synopsis
```
#include "petscsection.h"   
PetscErrorCode PetscSectionCompare(PetscSection s1, PetscSection s2, PetscBool *congruent)
```
Collective


## Input Parameters

- ***s1 -*** the first `PetscSection`
- ***s2 -*** the second `PetscSection`



## Output Parameter

- ***congruent -*** `PETSC_TRUE` if the two sections are congruent, `PETSC_FALSE` otherwise





## Note
Field names are disregarded.


## See Also
 [PetscSection](sec_petscsection), `PetscSection`, `PetscSectionCreate()`, `PetscSectionCopy()`, `PetscSectionClone()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/vec/is/section/interface/section.c.html#PetscSectionCompare">src/vec/is/section/interface/section.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/vec/is/section/interface/section.c)


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