-
Notifications
You must be signed in to change notification settings - Fork 191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ability to RunEventsAndTriggers at steps within a slab for local time-stepping #6360
Add ability to RunEventsAndTriggers at steps within a slab for local time-stepping #6360
Conversation
AtSteps, /**< checked at time step boundaries */ | ||
}; | ||
|
||
/// Output operator for a Flag. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Flag -> WhenToCheck
|
||
/// \ingroup EventsAndTriggersGroup | ||
/// \brief Frequency at which Events and Triggers are checked | ||
enum class WhenToCheck : uint8_t { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Formatting seems off here.
|
||
Arguments: | ||
event_name: The name of an event like "ObserveTimeSteps". | ||
event__and_triggers_name: The name of a list of events. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo: double underscore, missing "s".
@@ -80,14 +84,18 @@ struct ObservationValue { | |||
namespace Tags { | |||
/// \ingroup EventsAndTriggersGroup | |||
/// Contains the events and triggers | |||
template <Triggers::WhenToCheck WhenToCheck> | |||
struct EventsAndTriggers : db::SimpleTag { | |||
using type = ::EventsAndTriggers; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From what I recall, the original plan was to template the Event
class (and possibly Trigger
) as well, since most events won't work if run AtSteps
. Was that idea abandoned?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No; that is what I plan to do in the next PR. I just thought it would be easier to break things up into separate PRs, as this one will be the one that requires changes to the input files, and I wanted to get the enum finalized before templating the Events on it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, that's fine.
38fb1a8
to
ac6507b
Compare
Looks good. Squash. |
WhenToCheck will be used to distinguish input file options for EventsAndTriggers that are checked at different frequencies (e.g. after every time slab or after every time step).
The previous hard-coded value for the name will not work for multiple sets of EventsAndTriggers in an input file.
In evolution executables, the current input option EventsAndTriggers is replaced with EventsAndTriggersAtSlabs. In elliptic executables, the current input option EventsAndTriggers is replaced with EventsAndTriggersAtIterations. In a future commit, an additional input file option will be added for evolution executables with local time stepping.
If using LTS, then check EventsAndTriggersAtSteps which can trigger at steps inside a Slab.
ac6507b
to
ca5e87d
Compare
Proposed changes
Upgrade instructions
Code review checklist
make doc
to generate the documentation locally intoBUILD_DIR/docs/html
.Then open
index.html
.code review guide.
bugfix
ornew feature
if appropriate.Further comments