petsc-3.13.6 2020-09-29
Report Typos and Errors

DMGetCoordinatesLocal

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

Synopsis

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

Input Parameter

dm -the DM

Output Parameter

c -coordinate vector

Note

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

Each process has the local and ghost coordinates

For DMDA, in 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...)

See Also

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

Level

intermediate

Location

src/dm/interface/dm.c

Examples

src/dm/impls/plex/tutorials/ex7.c.html
src/dm/tutorials/ex3.c.html
src/dm/tutorials/ex13f90.F90.html
src/ksp/ksp/tutorials/ex42.c.html
src/ksp/ksp/tutorials/ex43.c.html
src/ksp/ksp/tutorials/ex49.c.html
src/ksp/ksp/tutorials/ex69.c.html
src/ksp/ksp/tutorials/ex70.c.html
src/ksp/ksp/tutorials/ex71.c.html
src/snes/tutorials/ex56.c.html
src/snes/tutorials/ex77.c.html

Index of all DM routines
Table of Contents for all manual pages
Index of all manual pages