diff options
author | 2020-01-22 15:49:43 -0800 | |
---|---|---|
committer | 2020-01-22 15:49:43 -0800 | |
commit | efbe52efdf3dabe334254d8feed4bb15d6c99a45 (patch) | |
tree | 031ffbaffc70ee7628b0fc0259de586eff30e3dd /Source/Parallelization/InterpolateCurrentFineToCoarse.H | |
parent | 6abaac6d206162963ce9fab6c833708425f7a2ab (diff) | |
download | WarpX-efbe52efdf3dabe334254d8feed4bb15d6c99a45.tar.gz WarpX-efbe52efdf3dabe334254d8feed4bb15d6c99a45.tar.zst WarpX-efbe52efdf3dabe334254d8feed4bb15d6c99a45.zip |
Interpolate Current: Fix Shadow Warning
Fix a variable shadowing warning in InterpolateCurrentFineToCoarse.
Diffstat (limited to 'Source/Parallelization/InterpolateCurrentFineToCoarse.H')
-rw-r--r-- | Source/Parallelization/InterpolateCurrentFineToCoarse.H | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Parallelization/InterpolateCurrentFineToCoarse.H b/Source/Parallelization/InterpolateCurrentFineToCoarse.H index cbbcdfab5..58451c6b7 100644 --- a/Source/Parallelization/InterpolateCurrentFineToCoarse.H +++ b/Source/Parallelization/InterpolateCurrentFineToCoarse.H @@ -63,9 +63,9 @@ public: // return zero for out-of-bounds accesses during interpolation // this is efficiently used as a method to add neutral elements beyond guards in the average below - auto const fine = [fine_unsafe] AMREX_GPU_DEVICE (int const j, int const k, int const l) noexcept + auto const fine = [fine_unsafe] AMREX_GPU_DEVICE (int const jj, int const kk, int const ll) noexcept { - return fine_unsafe.contains(j, k, l) ? fine_unsafe(j, k, l) : amrex::Real{0.}; + return fine_unsafe.contains(jj, kk, ll) ? fine_unsafe(jj, kk, ll) : amrex::Real{0.}; }; int const ii = i * m_refinement_ratio; |