:orphan: # PetscSFMerge append/merge indices of `sfb` into `sfa`, with preference for `sfb` ## Synopsis ``` #include "petscsf.h" PetscErrorCode PetscSFMerge(PetscSF sfa, PetscSF sfb, PetscSF *merged) ``` Collective ## Input Arguments - ***sfa -*** default `PetscSF` - ***sfb -*** additional edges to add/replace edges in sfa ## Output Arguments - ***merged -*** new `PetscSF` with combined edges ## See Also : `PetscSFCompose()` ## Level intermediate ## Location src/vec/is/sf/utils/sfutils.c --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/vec/is/sf/utils/sfutils.c) [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)