1 #if !defined(_SFGATHERV_H) 2 #define _SFGATHERV_H 3 4 #include <../src/vec/is/sf/impls/basic/allgatherv/sfallgatherv.h> 5 6 typedef PetscSFPack_Allgatherv PetscSFPack_Gatherv; 7 #define PetscSFPackGet_Gatherv PetscSFPackGet_Allgatherv 8 9 /* Reuse the type. The difference is some fields (displs, recvcounts) are only significant 10 on rank 0 in Gatherv. On other ranks they are harmless NULL. 11 */ 12 typedef PetscSF_Allgatherv PetscSF_Gatherv; 13 14 PETSC_INTERN PetscErrorCode PetscSFFetchAndOpBegin_Gatherv(PetscSF,MPI_Datatype,void*,const void*,void*,MPI_Op); 15 #endif 16