SpECTRE  v2025.03.17
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
TestHelpers::DenseTriggers::BoxTrigger< Label > Class Template Reference

Classes

struct  IsTriggered
 
struct  NextCheck
 

Public Types

using options = implementation defined
 
using is_triggered_return_tags = implementation defined
 
using is_triggered_argument_tags = implementation defined
 
using next_check_time_return_tags = implementation defined
 
using next_check_time_argument_tags = implementation defined
 

Public Member Functions

template<typename Metavariables , typename ArrayIndex , typename Component >
std::optional< bool > is_triggered (Parallel::GlobalCache< Metavariables > &, const ArrayIndex &, const Component *, const std::optional< bool > &is_triggered) const
 
template<typename Metavariables , typename ArrayIndex , typename Component >
std::optional< double > next_check_time (Parallel::GlobalCache< Metavariables > &, const ArrayIndex &, const Component *, const std::optional< double > &next_check) const
 
void pup (PUP::er &p)
 
- Public Member Functions inherited from DenseTrigger
template<typename DbTags , typename Metavariables , typename ArrayIndex , typename Component >
std::optional< bool > is_triggered (const gsl::not_null< db::DataBox< DbTags > * > box, Parallel::GlobalCache< Metavariables > &cache, const ArrayIndex &array_index, const Component *const component)
 Check whether the trigger fires. Returns std::nullopt if insufficient data is available to make the decision. The trigger is not responsible for checking whether dense output of the evolved variables is possible, but may need to check things such as the availability of FunctionOfTime data.
 
template<typename DbTags , typename Metavariables , typename ArrayIndex , typename Component >
std::optional< double > next_check_time (const gsl::not_null< db::DataBox< DbTags > * > box, Parallel::GlobalCache< Metavariables > &cache, const ArrayIndex &array_index, const Component *component)
 Obtain the next time to check the trigger, or std::nullopt if the trigger is not ready to report yet.
 
std::optional< double > previous_trigger_time () const
 Reports the value of Tags::Time when the trigger most recently fired, except for the most recent call of is_triggered. More...
 
void pup (PUP::er &p) override
 

Static Public Member Functions

static std::string name ()
 

Static Public Attributes

static constexpr Options::String help = "help"
 

The documentation for this class was generated from the following file: