PETSc object for setting up and managing the communication of certain entries of arrays and
Vec between MPI ranks.
typedef struct _p_PetscSF *PetscSF;
PetscSF uses the concept of star forests to indicate and determine the communication patterns concisely and efficiently.
A star https://en.wikipedia.org/wiki/Star_(graph_theory) forest is simply a collection of trees of height 1. The leave nodes represent
“ghost locations” for the root nodes.
_p_PetscSF in include/petsc/private/sfimpl.h
PetscSF_Allgatherv in src/vec/is/sf/impls/basic/allgatherv/sfallgatherv.h
PetscSF_Neighbor in src/vec/is/sf/impls/basic/neighbor/sfneighbor.c
PetscSF_Basic in src/vec/is/sf/impls/basic/sfbasic.h
PetscSF_Window in src/vec/is/sf/impls/window/sfwindow.c