-
Notifications
You must be signed in to change notification settings - Fork 112
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
Store capacity serial tree mesh #1748
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. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1748 +/- ##
===========================================
- Coverage 89.92% 72.89% -17.03%
===========================================
Files 431 431
Lines 34854 34863 +9
===========================================
- Hits 31339 25411 -5928
- Misses 3515 9452 +5937
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Sorry, but I don't fully get it: What's the purpose of this change? One still needs to provide |
No, not at all: If you do not provide Concrete example: The mesh loaded here
is of the form
while the mesh loaded with the proposed change has fields
since we store
I prefer the proposed change very much since the current version will cause your AMR simulation to crash. |
Thanks for the explanation! |
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.
The proper solution to the described issue would of course be to implement/fix #486. In the meantime, this sounds like a good idea for a quick fix of the capacity
/n_cells_max
issue when doing restarts.
With the two comments resolved, this LGTM!
Co-authored-by: Michael Schlottke-Lakemper <[email protected]>
This change saves the capacity of a (serial) tree mesh in the restart file and is retrieved later on.