-
Notifications
You must be signed in to change notification settings - Fork 113
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
Show percentage of simulation progress #1659
Show percentage of simulation progress #1659
Conversation
Review checklistThis checklist is meant to assist creators of PRs (to let them know what reviewers will typically look for) and reviewers (to guide them in a structured review process). Items do not need to be checked explicitly for a PR to be eligible for merging. Purpose and scope
Code quality
Documentation
Testing
Performance
Verification
Created with ❤️ by the Trixi.jl community. |
Very interesting idea! Without having looked at the code yet: How do you know whether the simulation time or the max. number of iterations will determine when the simulation is finished? |
Ok, justified objection. I just assumed the simulation time will determine when the simulation is finished. |
But IMHO a finish due to max. number of iterations is something like an "early finish" for me. So I would be fine if it does not say 100% at the end when the simulation is finished due to the max. number of iterations are reached. It would actually be an interesting number at which percent of the final simulation time the simulation ended in this case, I think. What do you think? |
Not really an objection, more of an honest question. I wouldn't mind having such an feature if it is made clear to the user that what this percentage refers to. |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #1659 +/- ##
==========================================
- Coverage 93.24% 86.32% -6.92%
==========================================
Files 419 419
Lines 34134 34146 +12
==========================================
- Hits 31826 29474 -2352
- Misses 2308 4672 +2364
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
In principle one could also print final time alongside current simulation time. Then, if the user forgot the simulation endtime it is conveniently displayed. On the other side, we always write out errors which are also meaningless in actual simulations - in some sense this is also misleading. |
We could document this, e.g., here. |
It looks like the P4est_jll update breaks some tests here, too... |
Moreover, some |
Other than the failing tests, I do like the approach. It's of course not perfect (since one could want to have a percentage of the total run time), but it's the best information we can provide. |
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!
Only a minor thing, but as a user you are probably interested in how much percent of the simulation is already done, especially in a simulation that runs for a longer time. With this PR, this information is printed in the
AnalysisCallback
and in theAliveCallback
in parenthesis behind the simulation time.