SpECTRE
v2024.08.03
|
Creates a new element in an ArrayAlgorithm whose id is parent_id
More...
#include <CreateParent.hpp>
Static Public Member Functions | |
template<typename ParallelComponent , typename DbTagList , typename Metavariables , typename ElementProxy > | |
static void | apply (db::DataBox< DbTagList > &, Parallel::GlobalCache< Metavariables > &cache, const int, ElementProxy element_proxy, ElementId< Metavariables::volume_dim > parent_id, const ElementId< Metavariables::volume_dim > &child_id, std::deque< ElementId< Metavariables::volume_dim > > sibling_ids_to_collect, const std::unordered_map< Parallel::Phase, size_t > child_phase_bookmarks) |
Creates a new element in an ArrayAlgorithm whose id is parent_id
This action is meant to be initially invoked by amr::Actions::AdjustDomain on the amr::Component. This action inserts a new element with id parent_id
in the array referenced by element_proxy
. A Parallel::SimpleActionCallback callback
is passed to the constructor of the new DistributedObject, which will invoke amr::Actions::CollectDataFromChildren on the element with id child_id
.
This action does not modify anything in the DataBox