DMSetCoordinates#

Sets into the DM a global vector that holds the coordinates

Synopsis#

#include "petscdm.h"          
PetscErrorCode DMSetCoordinates(DM dm, Vec c)

Collective on dm

Input Parameters#

  • dm - the DM

  • c - coordinate vector

Notes#

The coordinates do include those for ghost points, which are in the local vector.

The vector c should be destroyed by the caller.

See Also#

DMSetCoordinatesLocal(), DMGetCoordinates(), DMGetCoordinatesLocal(), DMGetCoordinateDM(), DMDASetUniformCoordinates()

Level#

intermediate

Location#

src/dm/interface/dmcoordinates.c

Examples#

src/snes/tutorials/ex16.c.html
src/snes/tutorials/ex71.c.html
src/snes/tutorials/ex76.c.html


Edit on GitLab

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