:orphan: # PetscSFDuplicateOption Aspects to preserve when duplicating a `PetscSF` ## Synopsis ``` typedef enum { PETSCSF_DUPLICATE_CONFONLY, PETSCSF_DUPLICATE_RANKS, PETSCSF_DUPLICATE_GRAPH } PetscSFDuplicateOption; ``` ## Values - ***`PETSCSF_DUPLICATE_CONFONLY` -*** configuration only, user must call `PetscSFSetGraph()` - ***`PETSCSF_DUPLICATE_RANKS` -*** communication ranks preserved, but different graph (allows simpler setup after calling `PetscSFSetGraph()`) - ***`PETSCSF_DUPLICATE_GRAPH` -*** entire graph duplicated ## See Also `PetscSF`, `PetscSFDuplicate()` ## Level beginner ## Location include/petscsf.h --- [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)