DAGetGlobalIndices

Returns the global node number of all local nodes, including ghost nodes.

Synopsis

int DAGetGlobalIndices(DA da, int *n,int **idx)
Not Collective

Input Parameter

da -the distributed array

Output Parameters

n - the number of local elements, including ghost nodes (or PETSC_NULL)
idx - the global indices

Note

For DA_STENCIL_STAR stencils the inactive corner ghost nodes are also includedin the list of local indices (even though those nodes are not updatedduring calls to DAXXXToXXX().

Fortran Note

The Fortran interface is slightly different from that given below. See the Fortran chapter of the users manual for details.

Keywords

distributed array, get, global, indices, local-to-global

See Also

DACreate2d(), DAGetGhostCorners(), DAGetCorners(), DALocalToGlocal()
DAGlobalToLocal(), DALocalToLocal(), DAGetAO(), DAGetGlobalIndicesF90()

Examples

src/sles/examples/tutorials/ex14f.F
src/sles/examples/tutorials/ex14.c
src/snes/examples/tutorials/ex5f.F
src/snes/examples/tutorials/ex5.c
src/snes/examples/tutorials/ex7.c
src/snes/examples/tutorials/ex8.c
src/snes/examples/tutorials/ex9.c

Location: src/da/src/daindex.c
IS and DA Index
Table of Contents