petsc-3.11.0 2019-03-29
PetscSFGetWindow
Get a window for use with a given data type
Synopsis
#include "petscsf.h"
static PetscErrorCode PetscSFGetWindow(PetscSF sf,MPI_Datatype unit,void *array,PetscBool epoch,PetscMPIInt fenceassert,PetscMPIInt postassert,PetscMPIInt startassert,MPI_Win *win)
Collective on PetscSF
Input Arguments
Output Arguments
win -window
Developer Notes
This currently always creates a new window. This is more synchronous than necessary. An alternative is to try to
reuse an existing window created with the same array. Another alternative is to maintain a cache of windows and reuse
whichever one is available, by copying the array into it if necessary.
See Also
PetscSFGetRanks(), PetscSFWindowGetDataTypes()
Level
developer
Location
src/vec/is/sf/impls/window/sfwindow.c
Index of all PetscSF routines
Table of Contents for all manual pages
Index of all manual pages