IBSEB: rename the ibseb_advance timestep parameter, which shadowed ERF::dt - #433
Merged
Merged
Conversation
…F::dt The dt parameter of ERF::ibseb_advance shadows ERF's own dt member (amrex::Vector<double> dt, ERF.H:1165), so a clang -Wshadow build warns at Source/ImmersedBoundarySEB/ERF_IBSEB.cpp:131. The HIP and GCC CI jobs build with -Wshadow and with IBSEB compiled unconditionally, and both fail on any warning outside the submodules. Renamed to dt_lev, which is what ERF::Advance calls the same quantity and what the only caller already passes. Declaration, definition and the two uses in the body; no other change. Upstream has the identical signature (erf-model/ERF Source/ImmersedBoundarySEB came in with erf-model#3960), so the same rename belongs there. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
ERF::ibseb_advancetakes adtparameter that shadows ERF's owndtmember (amrex::Vector<double> dt,ERF.H:1165). A clang-Wshadowbuild warns atSource/ImmersedBoundarySEB/ERF_IBSEB.cpp:131, and the HIP and GCC CI jobs build with-Wshadowover IBSEB, which is compiled unconditionally.Renamed to
dt_lev: the nameERF::Advanceuses for the same quantity, and the name the only caller already passes. Declaration, definition and the two uses in the body. Nothing else.Found by the
-Wshadowbuild run while checking #432; it is not from that PR.Checks
declaration shadows a field of 'ERF' [-Wshadow]atERF_IBSEB.cpp:131; on this branch: no warnings or errors outside Submodules (176 s, Debug, MPI, dust on, unit tests on).ctest -R IBSEB5 of 5 pass, including theIBSEB_Cuberegression (58.5 s) and the three Louis gtestsIBSEB_Cubefcompares against its gold file and passes, so the fields are unchanged. The rename touches no expression.git diff --check, the plan-file prose grep, the MSVC scan (long,M_PI,gmtime) on the changed file, the device-code scanners (no hits), Sphinx (zero warnings), submodule gitlinks all160000.Upstream
Source/ImmersedBoundarySEBis upstream as of erf-model#3960 and has the identical signature, so the same rename is wanted there; otherwise the warning returns with the next development sync. Happy to open that PR next.🤖 Generated with Claude Code