petsc-3.7.1 2016-05-15
Report Typos and Errors

DMGetCoordinatesLocal

Gets a local vector with the coordinates associated with the DM.

Synopsis

#include "petscdm.h"          
#include "petscdmlabel.h"     
PetscErrorCode DMGetCoordinatesLocal(DM dm, Vec *c)
Collective on DM Many br

Input Parameter

dm -the DM Many br

Output Parameter

c -coordinate vector Many br

Note

This is a borrowed reference, so the user should NOT destroy this vector Many br

Each process has the local and ghost coordinates Many br

For DMDA, in two and three dimensions coordinates are interlaced (x_0,y_0,x_1,y_1,...) Many brand (x_0,y_0,z_0,x_1,y_1,z_1...) Many br

Many br

Keywords

distributed array, get, corners, nodes, local indices, coordinates

See Also

DMSetCoordinatesLocal(), DMGetCoordinates(), DMSetCoordinates(), DMGetCoordinateDM()

Level:intermediate
Location:
src/dm/interface/dm.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/ex13f90.F90.html
src/ksp/ksp/examples/tutorials/ex42.c.html
src/ksp/ksp/examples/tutorials/ex43.c.html
src/ksp/ksp/examples/tutorials/ex49.c.html
src/snes/examples/tutorials/ex77.c.html
src/ts/examples/tutorials/ex11.c.html
src/ts/examples/tutorials/ex34.c.html