SpECTRE
v2023.12.08
|
Event for running control system measurements. More...
#include <Event.hpp>
Public Types | |
using | compute_tags_for_observation_box = metafunctions::compute_tags_for_observation_box_t< measurement > |
using | return_tags = tmpl::list<> |
using | argument_tags = tmpl::list<::Tags::Time, ::evolution::Tags::PreviousTriggerTime, ::Tags::ObservationBox > |
using | is_ready_argument_tags = tmpl::list<::Tags::Time > |
Public Member Functions | |
template<typename DbType , typename ComputeTagsList , typename Metavariables , typename ArrayIndex , typename Component > | |
void | operator() (const double time, const std::optional< double > previous_time, const ObservationBox< DbType, ComputeTagsList > &box, Parallel::GlobalCache< Metavariables > &cache, const ArrayIndex &array_index, const Component *const component, const ObservationValue &) const |
template<typename Metavariables , typename ArrayIndex , typename Component > | |
bool | is_ready (const double time, Parallel::GlobalCache< Metavariables > &cache, const ArrayIndex &array_index, const Component *const component) const |
bool | needs_evolved_variables () const override |
Whether the event uses anything depending on the evolved_variables. If this returns false, anything depending on the evolved variables may have an incorrect value when the event is run. More... | |
![]() | |
Event (CkMigrateMessage *msg) | |
WRAPPED_PUPable_abstract (Event) | |
template<typename ComputeTagsList , typename DataBoxType , typename Metavariables , typename ArrayIndex , typename ComponentPointer > | |
void | run (const gsl::not_null< ObservationBox< ComputeTagsList, DataBoxType > * > box, Parallel::GlobalCache< Metavariables > &cache, const ArrayIndex &array_index, const ComponentPointer, const ObservationValue &observation_value) const |
template<typename DbTags , typename Metavariables , typename ArrayIndex , typename ComponentPointer > | |
bool | is_ready (const db::DataBox< DbTags > &box, Parallel::GlobalCache< Metavariables > &cache, const ArrayIndex &array_index, const ComponentPointer) const |
virtual bool | needs_evolved_variables () const =0 |
Whether the event uses anything depending on the evolved_variables. If this returns false, anything depending on the evolved variables may have an incorrect value when the event is run. More... | |
Static Public Attributes | |
static constexpr bool | factory_creatable = false |
Event for running control system measurements.
This event is only intended to be used with the control_system::Trigger
trigger. A specialization of this event will be created during control system initialization for each unique measurement.
These events must be added to the factory_creation struct in the metavariables, even though they cannot be created from the input file. The control_system::control_system_events
metafunction provides the list of events to include.
|
inlineoverridevirtual |
Whether the event uses anything depending on the evolved_variables. If this returns false, anything depending on the evolved variables may have an incorrect value when the event is run.
Implements Event.