SAMappingMapSplitLocal
maps an SA with local indices from the rank's support to global indices from the rank's range. The image of each index is a separate SA. Since SAMapping is in general multivalued, some local 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 SAMappingMapSplitLocal(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(),
SAMappingMapLocal(), SAMappingMapSplit(), 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