-
Notifications
You must be signed in to change notification settings - Fork 109
Refactor m_riemann_solvers
Module (HLLC Solver Subroutine)
#912
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: master
Are you sure you want to change the base?
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
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.
Pull Request Overview
This PR refactors the s_hllc_riemann_solver
subroutine in m_riemann_solvers.fpp
to streamline variable initialization, consolidate energy adjustment logic, and introduce a loop_end
helper for fluid loops.
- Consolidated zero-initialization of primitive-state variables at the start of each cell loop
- Merged hypoelastic and hyperelastic energy adjustments into a single conditional block
- Introduced
loop_end
to simplify fluid‐count branching
PR Code Suggestions ✨Explore these optional code suggestions:
|
Pushing this after ensuring select buggy tests that failed prior have passed neatly. |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #912 +/- ##
==========================================
+ Coverage 44.15% 44.17% +0.02%
==========================================
Files 68 68
Lines 18347 18309 -38
Branches 2227 2225 -2
==========================================
- Hits 8101 8088 -13
+ Misses 8943 8922 -21
+ Partials 1303 1299 -4 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
User description
Description
Reduced PR from (#855),
Essentially, I refactored math-critical items in
s_hllc_riemann_solver
subroutine.PR Type
Enhancement
Description
Consolidate variable initialization at loop start
Merge duplicate loops for left/right state calculations
Combine hypoelastic and hyperelastic energy adjustments
Optimize Reynolds number computation loops
Changes diagram
Changes walkthrough 📝
m_riemann_solvers.fpp
HLLC solver code structure optimization
src/simulation/m_riemann_solvers.fpp