DMForestGetBaseCoordinateMapping#

Get the user-supplied coordinate mapping previously set with DMForestSetBaseCoordinateMapping().

Synopsis#

#include "petscdmforest.h" 
#include "petscdm.h" 
#include "petscdmlabel.h" 
PetscErrorCode DMForestGetBaseCoordinateMapping(DM dm, PetscErrorCode (**func)(DM base, PetscInt coarsePoint, PetscInt dim, const PetscReal coordIn[], PetscReal coordOut[], PetscCtx ctx), PetscCtxRt ctx)

Not Collective

Input Parameter#

Output Parameters#

  • func - the callback, or NULL

  • ctx - the application context that was registered with the callback, or NULL

Calling sequence of func#

  • base - the base DM of the forest

  • coarsePoint - the base-DM cell that owns the coordinate being mapped

  • dim - the coordinate dimension (at most 3)

  • coordIn - the input coordinate on the base DM

  • coordOut - the mapped coordinate to be written

  • ctx - optional application context

See Also#

DM, DMFOREST, DMForestSetBaseCoordinateMapping()

Level#

intermediate

Location#

src/dm/impls/forest/forest.c


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