9 #include "Options/Comparator.hpp"
12 #include "ParallelAlgorithms/EventsAndTriggers/Trigger.hpp"
13 #include "Utilities/Registration.hpp"
23 template <
typename TriggerRegistrars>
26 namespace Registrars {
33 template <
typename TriggerRegistrars = tmpl::list<Registrars::TimeCompares>>
39 using PUP::able::register_constructor;
53 using options = tmpl::list<Comparison, Value>;
55 "Trigger based on a comparison with the time."};
58 const double time) noexcept
59 : comparator_(comparator), time_(time) {}
61 using argument_tags = tmpl::list<Tags::Time>;
63 bool operator()(
const double& time)
const noexcept {
64 return comparator_(time, time_);
68 void pup(PUP::er& p) noexcept {
79 template <
typename TriggerRegistrars>
80 PUP::able::PUP_ID TimeCompares<TriggerRegistrars>::my_PUP_ID = 0;