-
Notifications
You must be signed in to change notification settings - Fork 225
Disable checkpointing properly if openPMD is missing #5493
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
Disable checkpointing properly if openPMD is missing #5493
Conversation
| } | ||
|
|
||
| // Checkpoints are expected to be sorted chronologically. | ||
| bool const stepFound = std::binary_search(checkpoints.cbegin(), checkpoints.cend(), restartStep); |
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.
I have this logic here
5b85557 to
24a14ee
Compare
Moves checkpointing simulation control in its own class Checkpoint class now has a compile time toggle to disable checkpoint/restart functionality Simplified restart state management and changed from using bools to an enum tracking state
24a14ee to
6bbde4f
Compare
chillenzer
left a comment
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.
Partial review.
chillenzer
left a comment
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.
Looks okay to me otherwise. Please do the marked renamings.
|
@ikbuibui what is the status of this PR? |
|
I still need to address the requested changes, will happen sometime this week. |
Specialized the Checkpointing class template for disabled, i.e. false type Did some renamings Unified the enum to string mapping
09afb1a to
d456273
Compare
d456273 to
b0cf28b
Compare
b0cf28b to
6415776
Compare
chillenzer
left a comment
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.
Thanks for bearing with me for so long. We finally made it!
3a84b8f
into
ComputationalRadiationPhysics:dev
Moves checkpointing simulation control in its own class
Checkpoint class now has a compile time toggle to disable checkpoint/restart functionality (fixes #5480)
Simplified restart state management and changed from using bools to an enum tracking state