petsc-3.3-p7 2013-05-11
DMDAGetCoordinates
Gets the node coordinates associated with a DMDA.
Synopsis
#include "petscdmda.h"
PetscErrorCode DMDAGetCoordinates(DM da,Vec *c)
Not Collective
Input Parameter
da -the distributed array
Output Parameter
c -coordinate vector
Note
Each process has only the coordinates for its local nodes (does NOT have the
coordinates for the ghost nodes).
For two and three dimensions coordinates are interlaced (x_0,y_0,x_1,y_1,...)
and (x_0,y_0,z_0,x_1,y_1,z_1...)
Keywords
distributed array, get, corners, nodes, local indices, coordinates
See Also
DMDAGetGhostCorners(), DMDASetCoordinates(), DMDASetUniformCoordinates(), DMDAGetGhostedCoordinates(), DMDAGetCoordinateDA()
Level:intermediate
Location:src/dm/impls/da/dacorn.c
Index of all DM routines
Table of Contents for all manual pages
Index of all manual pages
Examples
src/dm/examples/tutorials/ex3.c.html
src/dm/examples/tutorials/ex4.c.html
src/ksp/ksp/examples/tutorials/ex49.c.html
src/snes/examples/tutorials/ex22.c.html
src/snes/examples/tutorials/ex46.c.html