-
Notifications
You must be signed in to change notification settings - Fork 119
Validate PlotData2D
with LinearScalarAdvectionEquation3D
#2377
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
base: main
Are you sure you want to change the base?
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. |
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 for taking the initiative! I added a couple small first comments
@@ -691,6 +691,64 @@ end | |||
end | |||
end | |||
end | |||
|
|||
@trixi_testset "PlotData2D gives correct results" begin |
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.
@trixi_testset "PlotData2D gives correct results" begin | |
@trixi_testset "PlotData2D" begin |
Usually we want most tests to give correct results :)
scalar = c + A * sin(omega * sum(x_trans)) * exp(-2 * nu * omega^2 * t) | ||
return SVector(scalar) | ||
end | ||
ic = initial_condition_diffusive_convergence_test |
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.
ic = initial_condition_diffusive_convergence_test | |
initial_condition = initial_condition_diffusive_convergence_test |
We keep it usually a little more verbose
@testset "Mesh Type: $mesh_type" for (mesh_type, mesh_fn) in [ | ||
("TreeMesh", () -> TreeMesh(coordinates_min, coordinates_max; | ||
n_cells_max = 10^4, | ||
initial_refinement_level=initial_refinement_level)), | ||
coordinates_min, coordinates_max)) | ||
] | ||
mesh = mesh_fn() |
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.
Is there a way to implement this using only mesh
without the hazzle around mesh_fn()
?
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2377 +/- ##
==========================================
- Coverage 96.94% 93.58% -3.36%
==========================================
Files 502 502
Lines 41682 41676 -6
==========================================
- Hits 40405 39000 -1405
- Misses 1277 2676 +1399
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
I am trying to get started on #2335 based off of #2334 and #2340.