SpECTRE  2021.08.02
Triggers::Times Class Reference

Trigger at particular times. More...

#include <Times.hpp>

Public Types

using argument_tags = tmpl::list< Tags::Time, Tags::TimeStepId >
 

Public Member Functions

 Times (std::unique_ptr< TimeSequence< double > > times) noexcept
 
bool operator() (const double now, const TimeStepId &time_id) const noexcept
 
void pup (PUP::er &p) noexcept override
 
- Public Member Functions inherited from Trigger
 WRAPPED_PUPable_abstract (Trigger)
 
template<typename DbTags >
bool is_triggered (const db::DataBox< DbTags > &box) noexcept
 

Static Public Attributes

static constexpr Options::String help {"Trigger at particular times."}
 

Detailed Description

Trigger at particular times.

Warning
This trigger will only fire if it is actually checked at the times specified. The StepToTimes StepChooser can be useful for this.