trixi-framework / Trixi.jl

Trixi.jl: Adaptive high-order numerical simulations of conservation laws in Julia
https://trixi-framework.github.io/Trixi.jl
MIT License
505 stars 98 forks source link

Fix `entropy` for quasi-1D compressible Euler #1974

Closed jlchan closed 3 weeks ago

jlchan commented 3 weeks ago

Fixes https://github.com/trixi-framework/Trixi.jl/pull/1947/files#r1628569760

github-actions[bot] commented 3 weeks ago

Review checklist

This 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 :heart: by the Trixi.jl community.

jlchan commented 3 weeks ago

There should be a test to catch this - there is not currently one, but I would propose making this a new issue instead of holding up https://github.com/trixi-framework/Trixi.jl/pull/1947/

Edit: ignore this comment, added a test in a098de3af688071fa41ec1581c4c9fd6086f56b4

JoshuaLampert commented 3 weeks ago

Formatting fails.

jlchan commented 3 weeks ago

Ah, I made some edits online so I didn't have a chance to run the formatter. One second.

jlchan commented 3 weeks ago

Hopefully that fixes things

JoshuaLampert commented 3 weeks ago

Doesn't look like the formatter is happy. Note that we use JuliaFormatter v1.0.45.

codecov[bot] commented 3 weeks ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 96.14%. Comparing base (2043cfe) to head (95b176b). Report is 1 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1974 +/- ## ========================================== + Coverage 96.13% 96.14% +0.01% ========================================== Files 460 460 Lines 36943 36942 -1 ========================================== + Hits 35512 35515 +3 + Misses 1431 1427 -4 ``` | [Flag](https://app.codecov.io/gh/trixi-framework/Trixi.jl/pull/1974/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=trixi-framework) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/trixi-framework/Trixi.jl/pull/1974/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=trixi-framework) | `96.14% <100.00%> (+0.01%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=trixi-framework#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

jlchan commented 3 weeks ago

Thanks for the review!

jlchan commented 3 weeks ago

Merging; all tests passed