DMCompositeGetGlobalISs

Gets the index sets for each composed object

Synopsis

#include "petscda.h"     
PetscErrorCode PETSCDM_DLLEXPORT DMCompositeGetGlobalISs(DMComposite packer,IS *is[])
Collective on DMComposite

Input Parameter

packer -the packer object

Output Parameters

is -the array of index sets

Notes

The is entries should be destroyed with ISDestroy(), the is array should be freed with PetscFree()

The number of IS on each process will/may be different when redundant arrays are used

These could be used to extract a subset of vector entries for a "multi-physics" preconditioner

Use DMCompositeGetLocalISs() for index sets that include ghost points

See Also

DMCompositeDestroy(), DMCompositeAddArray(), DMCompositeAddDM(), DMCompositeCreateGlobalVector(),
DMCompositeGather(), DMCompositeCreate(), DMCompositeGetAccess(), DMCompositeScatter(), DMCompositeGetLocalVectors(), DMCompositeRestoreLocalVectors(),DMCompositeGetEntries()

Level:advanced
Location:
src/dm/da/utils/pack.c
Index of all DA routines
Table of Contents for all manual pages
Index of all manual pages