SAMappingMapLocal

maps an SA with local indices from the rank's support to global indices from the rank's range. Since SAMapping is in general multivalued, some local indices are mapped to multiple global indices. Only selected indices (I or J) are mapped; the other indices and weights, if any, are preserved on the images.

Synopsis

#include "petscsa.h"  
PetscErrorCode SAMappingMapLocal(SAMapping map, SA inarr, SAIndex index, SA outarr)

Not collective

Input Parameters

map - mapping of indices
inarr - input SA
index - selection of the index to map (SA_I or SA_J; PETSC_NULL is equivalent to SA_I)

Output Parameters

outarr -SA with the selected indices mapped

See Also

SAMappingGetSupport(), SAMappingGetImage(), SAMappingGetSupportSizeLocal(), SAMappingGetImageSizeLocal(),
SAMappingMap(), SAMappingBin(), SAMappingBinLocal(), SAMappingMapSplitLocal()

Level:advanced
Location:
src/dm/sa/interface/sa.c
Index of all DM routines
Table of Contents for all manual pages
Index of all manual pages