diff options
author | 2020-01-27 15:55:22 -0800 | |
---|---|---|
committer | 2020-01-27 15:55:22 -0800 | |
commit | 6d77161d6e80b943230c2969c15674fe044cdb30 (patch) | |
tree | 37bbf756000df5f015f211b7ee2d15132ec6d166 /Source/Laser/LaserParticleContainer.cpp | |
parent | 658c6888a1cf1de2828a187d6d051a6bc5a2f4cb (diff) | |
parent | 6a06d68c805e81e7f942716c07873d07f9b668e7 (diff) | |
download | WarpX-6d77161d6e80b943230c2969c15674fe044cdb30.tar.gz WarpX-6d77161d6e80b943230c2969c15674fe044cdb30.tar.zst WarpX-6d77161d6e80b943230c2969c15674fe044cdb30.zip |
Merge branch 'dev' into templated_fdtd_solver
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); + } } // |