DMCompositeGetISLocalToGlobalMappings

gets an ISLocalToGlobalMapping for each DM/array in the DMComposite, maps to the composite global space

Synopsis

#include "petscdmcomposite.h"   
PetscErrorCode  DMCompositeGetISLocalToGlobalMappings(DM dm,ISLocalToGlobalMapping **ltogs)
Collective on DM

Input Parameter

dm -the packer object

Output Parameters

ltogs -the individual mappings for each packed vector/array. Note that this includes all the ghost points that individual ghosted DMDA's may have. Also each process has an mapping for EACH redundant array (not just the local redundant arrays).

Notes

Each entry of ltogs should be destroyed with ISLocalToGlobalMappingDestroy(), the ltogs array should be freed with PetscFree().

See Also

DMDestroy(), DMCompositeAddArray(), DMCompositeAddDM(), DMCreateGlobalVector(),
DMCompositeGather(), DMCompositeCreate(), DMCompositeGetAccess(), DMCompositeScatter(), DMCompositeGetLocalVectors(), DMCompositeRestoreLocalVectors(),DMCompositeGetEntries()

Level:advanced
Location:
src/dm/impls/composite/pack.c
Index of all DM routines
Table of Contents for all manual pages
Index of all manual pages