-
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
Fix the bad code with mixed use of variable scope #2092
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 #2092 +/- ##
==========================================
- Coverage 96.34% 96.34% -0.00%
==========================================
Files 470 470
Lines 37501 37497 -4
==========================================
- Hits 36129 36125 -4
Misses 1372 1372
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
If you think it is ok, then request the change with your version - I have no idea. |
Ah I know what you mean now - I don't want to wait either. Please review again @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.
Thanks!
Bad code -
coordinate_min
is a global variable and it should not be used like this. Either passcoordinate_min
toinflow
(does not work here) or pass constant directly toinitial_condition_shock
.The reviewer should not approve the bad code like this - it will cause big problems somewhere.