SAMappingMap
maps an SA with global indices from the rank's support to global indices from the rank's range. Since SAMapping is in general multivalued, some indices are mapped to multiple global indices. Only 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 SAMappingMap(SAMapping map, SA inarr, SAIndex index, SA outarr)
Not collective
Input Parameters
| map | - mapping of indices
|
| inarr | - input SA of indices and weights to map
|
| 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(),
SAMappingMapLocal(), SAMappingBin(), SAMappingBinLocal(), SAMappingMapSlit()
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