|
SpECTRE
v2026.04.01
|
A DataBox mutator used in AMR actions. More...
#include <Projector.hpp>
Classes | |
| struct | test |
A DataBox mutator used in AMR actions.
A class conforming to this protocol can be used as a projector in the list of projectors for a class conforming to amr::protocols::AmrMetavariables. The conforming class will be used when adaptive mesh refinement occurs to either initialize items on a newly created element of a DgElementArray, or update items on an existing element.
The conforming class must provide the following:
apply: static functions whose return value are void, and that take as arguments:
The Mesh and Element passed to amr::Actions::AdjustDomain are their values before the grid changes. The tuples passed to amr::Actions::InitializeChild and amr::Actions::InitializeParent hold the items corresponding to the DataBox<BoxTags>::mutable_item_creation_tags of the parent (children) of the child (parent) being initialized.
For examples, see Initialization::ProjectTimeStepping and evolution::dg::Initialization::ProjectDomain