SpECTRE  2021.08.02
observers::Actions::RegisterReductionContributorWithObserverWriter Struct Reference

Register an ArrayComponentId that will call observers::ThreadedActions::WriteReductionData or observers::ThreadedActions::ContributeReductionData for a specific ObservationIdRegistrationKey More...

#include <ObserverRegistration.hpp>

Static Public Member Functions

template<typename ParallelComponent , typename DbTagsList , typename Metavariables , typename ArrayIndex >
static void apply (db::DataBox< DbTagsList > &box, Parallel::GlobalCache< Metavariables > &cache, const ArrayIndex &, const observers::ObservationKey &observation_key, const ArrayComponentId &id_of_caller) noexcept
 

Detailed Description

Register an ArrayComponentId that will call observers::ThreadedActions::WriteReductionData or observers::ThreadedActions::ContributeReductionData for a specific ObservationIdRegistrationKey

Should be invoked on ObserverWriter by the component that will be contributing the data.