DMProjectCoordinates#
Project coordinates to a different space
Synopsis#
#include "petscdm.h"
PetscErrorCode DMProjectCoordinates(DM dm, PetscFE disc)
Input Parameters#
dm - The
DMobjectdisc - The new coordinate discretization or
NULLto ensure a coordinate discretization exists
Notes#
A PetscFE defines an approximation space using a PetscSpace, which represents the basis functions, and a PetscDualSpace, which defines the interpolation operation
in the space.
This function takes the current mesh coordinates, which are discretized using some PetscFE space, and projects this function into a new PetscFE space.
The coordinate projection is done on the continuous coordinates, and if possible, the discontinuous coordinates are also updated.
Developer Note#
With more effort, we could directly project the discontinuous coordinates also.
See Also#
Level#
intermediate
Location#
Examples#
src/dm/impls/plex/tutorials/ex8.c
Index of all DM routines
Table of Contents for all manual pages
Index of all manual pages