DAGetCorners
Returns the global (x,y,z) indices of the lower left corner of the local region, excluding ghost points.
Synopsis
int DAGetCorners(DA da,int *x,int *y,int *z,int *m, int *n, int *p)
Not Collective
Input Parameter
da -the distributed array
Output Parameters
x,y,z | - the corner indices (where y and z are optional; these are used
for 2D and 3D problems)
|
m,n,p | - widths in the corresponding directions (where n and p are optional;
these are used for 2D and 3D problems)
|
Note
The corner information is independent of the number of degrees of
freedom per node set with the DACreateXX() routine. Thus the x, y, z, and
m, n, p can be thought of as coordinates on a logical grid, where each
grid point has (potentially) several degrees of freedom.
Any of y, z, n, and p can be passed in as PETSC_NULL if not needed.
Keywords
distributed array, get, corners, nodes, local indices
See Also
DAGetGhostCorners()
Examples
src/sles/examples/tutorials/ex14f.F
src/sles/examples/tutorials/ex14.c
src/snes/examples/tutorials/ex5f.F
src/snes/examples/tutorials/ex5f90.F
src/snes/examples/tutorials/ex5.c
src/snes/examples/tutorials/ex3.c
src/snes/examples/tutorials/ex12.c
src/snes/examples/tutorials/ex7.c
src/snes/examples/tutorials/ex8.c
src/snes/examples/tutorials/ex9.c
Level:beginner
Location:src/dm/da/src/dacorn.c
DA Index
Table of Contents