SAMappingMapSplit

maps an SA with global indices from the rank's support to global indices from the rank's range. The image of each index is a separate SA. See SAMappingMap, if concatenated output is desired. Since SAMapping is in general multivalued, some global indices are mapped to multiple global indices. Only the indices of the selected type (I or J) are mapped; the other indices and weights, if any, are preserved on the images.

Synopsis

#include "petscsa.h"  
PetscErrorCode SAMappingMapSplit(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

outarrs -SA list; the list length is the same as inarr's SA length.

See Also

SAMappingGetSupport(), SAMappingGetImage(), SAMappingGetSupportSizeLocal(), SAMappingGetImageSizeLocal(),
SAMappingMap(), SAMappingMapLocalSplit(), SAMappingBinSplit(), SAMappingBinSplitLocal()

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