-
Notifications
You must be signed in to change notification settings - Fork 107
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
Reorganize curved elixirs in a more systematic way #892
Reorganize curved elixirs in a more systematic way #892
Conversation
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.
First of all: Your high-level description sounds good to me 👍 I will review this PR soon.
Your changes reduced our coverage since some non-periodic parts for the P4estMesh3D
are not tested anymore, e.g., https://coveralls.io/builds/43261839/source?filename=src%2Fmeshes%2Fp4est_mesh.jl#L212 and https://coveralls.io/builds/43261839/source?filename=src%2Fmeshes%2Fp4est_mesh.jl#L478. Could you please fix that by re-adding tests?
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 changes look good to me (except the coverage mentioned above)
Thanks for the review! I added the non-periodic Euler source terms test again for |
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!
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.
LGTM, thanks for increasing consistency and improving the tests!
I left two related comments about mesh dimensions. To summarize, I think there should be tests that do not all use the same number of cells in each dimension. However, this is not something that needs to block this PR from being merged.
Codecov Report
@@ Coverage Diff @@
## main #892 +/- ##
==========================================
+ Coverage 92.71% 92.72% +0.01%
==========================================
Files 229 233 +4
Lines 18947 18971 +24
==========================================
+ Hits 17565 17589 +24
Misses 1382 1382
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Together with #889, this will close #887 (I changed the advection velocity in all remaining elixirs).
However, I also did a major rework of the curved elixirs:
TreeMesh
elixir, and I added comments to the test files explaining that these errors are supposed to be identical to theTreeMesh
ones. So, whenever someone changes something that affects the errors of these elixirs, they (hopefully) don't just update the errors to the new ones, but actually copy theTreeMesh
ones to make sure it's still giving the same results.I also updated
examples/structured_3d_dgsem/elixir_advection_basic.jl
to use the same setup as theTreeMesh
variant.StructuredMesh3D
with a non-constant IC. Therefore, I changed the nonperiodic LSA elixir to use a warped mesh with curved boundaries. I also changed it to useinitial_condition_convergence_test
instead ofinitial_condition_gauss
, as I think that the Gauss IC is more appropriate for AMR examples.StructuredMesh
orP4estMesh
, so I changed the nonperiodic Euler elixir to use a warped mesh with curved boundaries as well.P4estMesh2D
. There was a nonconforming flag and a nonconforming unstructured flag. I made the unstructured one conforming, so we can test both the nonconforming and the unstructured feature isolated. The combination is still tested in the AMR unstructured flag. I also removed the nonperiodic boring Euler elixir and moved the structured nonperiodic test to the LSA extended elixir.P4estMesh3D
, I made sure that the AMR unstructured curved elixir is actually using a mesh that is FSP. Again, I removed the unnecessary nonperiodic boring Euler elixir, and I added a nonconforming unstructured curved elixir to test all the features we have with Euler (there wasn't even a curved Euler elixir forP4estMesh3D
before)._flag
to the elixirs that work on the waving flag mesh, so it's clear that these are curved elixirs.