-
Notifications
You must be signed in to change notification settings - Fork 23
Recallbacks #381
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
Merged
Merged
Recallbacks #381
Changes from 26 commits
Commits
Show all changes
85 commits
Select commit
Hold shift + click to select a range
856821c
Add pre/post callback function args to advance_state
thomasgibson 72ceaf6
Pass checkpoint functions as pre-step callbacks
thomasgibson 2814826
Add healthcheck callback and exceptions
thomasgibson 25dd51c
Use healthcheck callbacks in examples
thomasgibson 7ee673c
Fix docstring for sim_healthcheck
thomasgibson 9dba4ff
Document callback signature and return state
thomasgibson f1b3e4f
Test the basic healthcheck callback
thomasgibson faba167
Remove EOS copy-pasta
thomasgibson 0b6df95
Minor refactoring and allow callbacks to terminate the simulation
thomasgibson b656079
Fix exception docs
thomasgibson 2acdf73
Expand documentation of callbacks
thomasgibson 5405604
Simplify sim_checkpoint and modularize callbacks
thomasgibson ca7c37b
Update steppers
thomasgibson da65cd2
Write short test for comparison callback
thomasgibson 2523fbd
Renaming: {cfd_healthcheck,StepperCrashError} -> {sim_healthcheck,Syn…
thomasgibson 8284d8a
Simplify drivers; move exception handling into sim_checkpoint
thomasgibson 00d29a0
Merge branch 'main' into thg/callbacks
thomasgibson cba127b
Fix callback tests
thomasgibson 5c091bd
Merge branch 'thg/callbacks' of github.com:illinois-ceesd/mirgecom in…
thomasgibson 4c938fa
Clean up sim_checkpoint function
thomasgibson 0c2e986
Update simutils/health/checkpoint - move most to driver, simplify
MTCam 169b92d
Merge branch 'main' into mrgmain
MTCam 15bdf3d
Port examples into place, slight adjustment/cleanup/corrections for s…
MTCam 68302b4
Update tests to match the facilities.
MTCam 8b506e1
Twiddle to test both pressure and mass for first bad state.
MTCam 5043f86
Merge branch 'main' into recallbacks
MTCam 51ade9b
Sharpen the error sync.
MTCam 6833902
Update error handling to match review suggestion by @thomasgibson.
MTCam 080513e
Udpate error handling per @thomasgibson review.
MTCam 70ff6dc
Sharpen the handling of post-stepping (exceptional) io per @majosm.
MTCam cccff7f
Sharpen the valid ranges specific to each example, and remove default…
MTCam 1772b86
Correct call to naninf in test.
MTCam a9b7990
Use verbs for function names.
MTCam 100df77
Use new name for visfile util, switch autoignition and vortex over to…
MTCam 6f7ef04
Clean up logging a bit, attempt to use nlog to control logging interval.
MTCam 4376604
Merge branch 'main' into recallbacks
MTCam 2d37e96
Merge branch 'main' into recallbacks
MTCam c74b9f5
Merge branch 'main' into recallbacks
MTCam 1ca252e
Merge branch 'main' into recallbacks
MTCam 4c94a7d
Fix merge errors
MTCam 6e1e913
Merge branch 'main' into recallbacks
MTCam fa9aab6
Merge branch 'main' into recallbacks
MTCam 3e34bcc
Merge branch 'main' into recallbacks
MTCam 7f38ed1
Merge branch 'main' into recallbacks
MTCam ffb35b8
Merge branch 'main' into recallbacks
MTCam 293d28f
Refactor autoignit just a bit
MTCam 8443a66
Refactor autoignition example per discussions.
MTCam d2b2c68
Bring examples up-to-date with current stepper API
MTCam 9a5fcf3
Add DT health check to autoignition.
MTCam de48784
Modernize lump example
MTCam a5e5fc4
remove unused exceptions module, for now
MTCam 42ea719
remove unused exceptions module, for now
MTCam 0d74f9c
fix api/signature and doc
MTCam ae90d9f
Update stepper API to current
MTCam d092b82
Modernize more examples.
MTCam ff489e1
Fix simutil import
MTCam aa07513
Fix up steppers to call get_timestep properly
MTCam 1464b9b
Fix up inviscid_sim_timestep to properly consider t_remaining
MTCam 3dfdb21
Modernize examples.
MTCam 926e76a
Correct misnamed restart parameter.
MTCam cd95207
Merge branch 'main' into recallbacks
MTCam 82eb938
Reduce number of steps to speed up CI.
MTCam 02b37d8
Unify call signatures of user-defined utilities.
MTCam 7d6c988
Correct some dumb issues with the examples.
MTCam ab06ff7
Correct errant call-sites to new utility signatures.
MTCam 9c63136
Call logmgr_set_time on restart.
MTCam 1b4df75
Deprecate logmgr, dim, eos args to stepper.
MTCam c857e06
Correct mistake in input restart file naming.
MTCam bdd4d90
Correct mistake in input restart file naming.
MTCam 1a7e8e3
Correct import location for logmgr_set_time
MTCam 6a7d20c
Document dt, deprecate get_timestep arg
MTCam ea98b59
Update examples to use exceptions to clean up error handling, evict g…
MTCam d7bca23
Merge branch 'main' into recallbacks
MTCam 72505bc
Correct finished check, return a proper constant dt result, some othe…
MTCam 544a63f
Merge branch 'yupdayt-recallbacks' into recallbacks
MTCam 3c3bbd5
Correct and enhance the restart processing to demonstrate change-of-o…
MTCam 41f78ba
Update restart logic, add missing final dump advice.
MTCam 5c3ab55
Use built-in exceptions instead of custom ones.
MTCam c544ddd
Satisfy pylint to raise an actual named exception inside try.
MTCam 810ab46
Fix up the documentation to have the correct signature for callbacks
MTCam 549a8dd
Massage exceptions a bit so that the error messages are a little more…
MTCam d51755a
Merge branch 'exceptions-massage' into recallbacks
MTCam af009c3
Rearrange function def order for consistency and less "tism" activation.
MTCam 5306e30
Tweak exception handling to our liking.
MTCam 5bd30d8
Add syncing utility and use it in examples.
MTCam File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| Random Pile'o'Tools | ||
| =================== | ||
|
|
||
| .. automodule:: mirgecom.exceptions | ||
| .. automodule:: mirgecom.simutil | ||
|
|
||
| .. automodule:: mirgecom.utils |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This will need some additional logic to get a final dump when the final step isn't a multiple of the check interval.
Something like
?
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.
Please see what you think about the
forceargument added in (70ff6dc). I like theforceargument because it is a directive as opposed to the passive/automaticdone = t >= t_final.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'm OK with either for now, but I think the
doneversion moves us a little closer to #257. Currently in that PR,checkpointis called after the timestep (so there is no final checkpoint call in the driver that you couldforce), and alsocheckpointis what decides whether the simulation is finished or not (sodonewill be present anyway).