-
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
WIP: Unify create_cache
for ControllerThreeLevel*
and the different mesh types
#2285
base: main
Are you sure you want to change the base?
Conversation
…ombined, and the different meshes
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. |
function create_cache(::Type{ControllerThreeLevelCombined}, mesh::TreeMesh, | ||
# Construct cache for ControllerThreeLevel and ControllerThreeLevelCombined. | ||
# This method is called when a controller is constructed | ||
function create_cache(::Union{Type{ControllerThreeLevel}, |
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.
Would it make sense to put this method in amr_dg.jl instead since it is not dimension-dependent anymore?
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.
Or probably even in amr.jl?
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.
Do we have amr_dg.jl
as a file? Since it references the DG solver, that would be my pick
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.
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.
@sloede Does moving this stuff violate your "better be explicit and duplicate code for several space dimensions" policy?
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 believe there is precedence where we have replaced literally-identical implementations with a single function (e.g., solver functions for the different mesh types). So yes, I'd be ok with that :-)
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2285 +/- ##
==========================================
+ Coverage 89.49% 96.27% +6.78%
==========================================
Files 490 490
Lines 39507 39498 -9
==========================================
+ Hits 35355 38025 +2670
+ Misses 4152 1473 -2679
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
No description provided.