-
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
Save and load user_data for p4est #1915
Conversation
this fixes restating when using AMR
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 #1915 +/- ##
==========================================
+ Coverage 95.93% 96.13% +0.19%
==========================================
Files 460 460
Lines 36952 36956 +4
==========================================
+ Hits 35449 35524 +75
+ Misses 1503 1432 -71
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Can we have a CI test for this? |
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 more or less good to me, I only have one small suggestion.
I also second @ranocha's request for a test (if possible).
I am still unhappy with this fix. While I also do not know if there was a good reason for not saving user data in the first place. |
The solution is to use |
So with this, is it possible to restart a simulation and refine the initial condition? |
Just checked with this example here and it seems to work. |
Cool, thanks for picking this up! |
Do we have a test for this? Or is it covered by the tests we already have? |
So the newly introduced test does exactly this. So in some sense we "test for crash". |
Thanks for your feedback! Following @JoshuaLampert 's comment above and #1384 (comment) I removed In the new |
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!
Thanks! However, some test tolerances are not satisfied right now: https://github.com/trixi-framework/Trixi.jl/actions/runs/9398803634/job/25884924262?pr=1915#step:7:2874 |
Yes! I wanted to update them, but it seems I also introduced some issue in the MPI test. I'm on it. |
a5cd379
It seems to work now! |
This fixes restating when using AMR.
Resolves #1914