-
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
Add numerical support of other real types (shallow_water
)
#1995
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 #1995 +/- ##
==========================================
- Coverage 96.23% 96.23% -0.00%
==========================================
Files 462 462
Lines 37075 37074 -1
==========================================
- Hits 35676 35675 -1
Misses 1399 1399
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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 a lot! Please find below some comments/suggestions
Co-authored-by: Hendrik Ranocha <[email protected]>
@ranocha I remember I asked you about why some functions look so complex. So I took the |
Anyway, I fixed all of them based on your suggestions. Thanks! |
Thanks! Some unit tests are still missing but this looks good to me otherwise. |
Co-authored-by: Hendrik Ranocha <[email protected]>
RealT | ||
@test eltype(@inferred numflux(u_ll, u_rr, orientation, equations)) == RealT | ||
# no matching method | ||
# @test eltype(@inferred numflux(u_ll, u_rr, normal_direction, equations)) == RealT |
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.
Try to test both orientation
and normal_direction
but it showed
MethodError: no method matching min_max_speed_davis(::StaticArraysCore.SVector{3, Float32}, ::StaticArraysCore.SVector{3, Float32}, ::StaticArraysCore.SVector{1, Float32}, ::Trixi.ShallowWaterEquations1D{Float32})
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 that okay to comment like this? @ranocha
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.
Yes, that's fine 👍
@ranocha Ready for final review and merge ^o^ |
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!
water
)shallow_water
)
Continue #1909.
Tasks: