DMForestSetBaseCoordinateMapping#
Set a user-supplied mapping that is applied to the base DM’s coordinates when the forest computes coordinates for refined cells.
Synopsis#
#include "petscdmforest.h"
#include "petscdm.h"
#include "petscdmlabel.h"
PetscErrorCode DMForestSetBaseCoordinateMapping(DM dm, PetscErrorCode (*func)(DM base, PetscInt coarsePoint, PetscInt dim, const PetscReal coordIn[], PetscReal coordOut[], PetscCtx ctx), PetscCtx ctx)
Logically Collective
Input Parameters#
dm - the
DMFORESTfunc - callback that maps reference coordinates to physical coordinates
ctx - optional application context passed through to
func
Calling sequence of func#
See Also#
DM, DMFOREST, DMForestGetBaseCoordinateMapping(), DMForestSetBaseDM()
Level#
intermediate
Location#
Index of all DMForest routines
Table of Contents for all manual pages
Index of all manual pages