diff options
author | 2020-01-24 11:36:20 -0800 | |
---|---|---|
committer | 2020-01-24 11:36:20 -0800 | |
commit | f0f1e4009a53f032d6c69082e600680025086c89 (patch) | |
tree | 84ebc1e3005b54065d590a5c00f92a5aef6adbee /Source/Laser/LaserParticleContainer.cpp | |
parent | bc70a22c8699e1821081883299372a130cb377ee (diff) | |
download | WarpX-f0f1e4009a53f032d6c69082e600680025086c89.tar.gz WarpX-f0f1e4009a53f032d6c69082e600680025086c89.tar.zst WarpX-f0f1e4009a53f032d6c69082e600680025086c89.zip |
fix shadowing warning
Diffstat (limited to 'Source/Laser/LaserParticleContainer.cpp')
-rw-r--r-- | Source/Laser/LaserParticleContainer.cpp | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/Source/Laser/LaserParticleContainer.cpp b/Source/Laser/LaserParticleContainer.cpp index ed9f5eda0..7a75b9f24 100644 --- a/Source/Laser/LaserParticleContainer.cpp +++ b/Source/Laser/LaserParticleContainer.cpp @@ -466,17 +466,19 @@ LaserParticleContainer::Evolve (int lev, // Current Deposition // // Deposit inside domains - int* ion_lev = nullptr; - DepositCurrent(pti, wp, uxp, uyp, uzp, ion_lev, &jx, &jy, &jz, - 0, np_current, thread_num, - lev, lev, dt); - - bool has_buffer = cjx; - if (has_buffer){ - // Deposit in buffers - DepositCurrent(pti, wp, uxp, uyp, uzp, ion_lev, cjx, cjy, cjz, - np_current, np-np_current, thread_num, - lev, lev-1, dt); + { + int* ion_lev = nullptr; + DepositCurrent(pti, wp, uxp, uyp, uzp, ion_lev, &jx, &jy, &jz, + 0, np_current, thread_num, + lev, lev, dt); + + bool has_buffer = cjx; + if (has_buffer){ + // Deposit in buffers + DepositCurrent(pti, wp, uxp, uyp, uzp, ion_lev, cjx, cjy, cjz, + np_current, np-np_current, thread_num, + lev, lev-1, dt); + } } // |