:orphan:
# PetscSFConcatenateRootMode
Modes of root concatenation when concatenating `PetscSF`s 
## Synopsis
```
typedef enum {
  PETSCSF_CONCATENATE_ROOTMODE_LOCAL,
  PETSCSF_CONCATENATE_ROOTMODE_SHARED,
  PETSCSF_CONCATENATE_ROOTMODE_GLOBAL,
} PetscSFConcatenateRootMode;
```

## Values

- ***`PETSCSF_CONCATENATE_ROOTMODE_LOCAL`  -*** concatenate root spaces locally (separately on each rank)
- ***`PETSCSF_CONCATENATE_ROOTMODE_SHARED` -*** do not concatenate roots; root space is considered the same for each input `PetscSF` (checked in debug mode)
- ***`PETSCSF_CONCATENATE_ROOTMODE_GLOBAL` -*** concatenate root spaces globally





## See Also
 `PetscSF`, `PetscSFConcatenate()`

## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/include/petscsf.h.html#PetscSFConcatenateRootMode">include/petscsf.h</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/include/petscsf.h)


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