-
Notifications
You must be signed in to change notification settings - Fork 82
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
Time intervals for plt and chkpt output #881
Conversation
mbkuhn
commented
Jul 19, 2023
•
edited
Loading
edited
- instead of outputting at specified intervals of timesteps, this enables outputting at specified intervals of time
- this is an enabling feature for adaptive dt simulations and is key to making normal-looking videos when dt varies significantly with time (such as with breaking waves)
- the implementation includes the option to enforce dt to adhere to the plotting or checkpointing time intervals specified; otherwise the program will output the first plotfile or checkpoint after the time interval is passed
- also allows the maximum growth of dt (in adaptive dt simulations) to be an input parameter
- includes unit tests and abort statements for combinations of parameters that do not make sense
…ch exactly * option to enforce dt is available as input bool
@mbkuhn have you looked into |
* allow plotting and checkpointing functions to be aware of dt enforcing tolerances
Thanks for sharing this example! My setup of the dt enforcement is very similar to the amrex code. For the plotfile and checkpoint outputs, I mimicked part of a code from my PhD research group: https://github.com/desjardi/NGA2/blob/master/src/libraries/event_class.f90#L61 . Both are pretty similar conceptually. |