aboutsummaryrefslogtreecommitdiff
path: root/Source/Laser/LaserParticleContainer.cpp
diff options
context:
space:
mode:
authorGravatar RevathiJambunathan <revanathan@gmail.com> 2019-08-30 10:14:05 -0700
committerGravatar RevathiJambunathan <revanathan@gmail.com> 2019-08-30 10:14:05 -0700
commitbb930556e8262bb9e4270d2837d192167c86de84 (patch)
tree6b6c091d20b74855776b0594df2346ac3cc9c086 /Source/Laser/LaserParticleContainer.cpp
parent32ed0613ffa699cc87d30f8304a2ef835d2a6354 (diff)
parent32eaffdaab38e2e8e65799a14fbc7398fe852957 (diff)
downloadWarpX-bb930556e8262bb9e4270d2837d192167c86de84.tar.gz
WarpX-bb930556e8262bb9e4270d2837d192167c86de84.tar.zst
WarpX-bb930556e8262bb9e4270d2837d192167c86de84.zip
Merge branch 'PortingFortranPML_To_CPP_CUDA' of https://github.com/RevathiJambunathan/WarpX into PortingFortranPML_To_CPP_CUDA
Diffstat (limited to 'Source/Laser/LaserParticleContainer.cpp')
-rw-r--r--Source/Laser/LaserParticleContainer.cpp19
1 files changed, 13 insertions, 6 deletions
diff --git a/Source/Laser/LaserParticleContainer.cpp b/Source/Laser/LaserParticleContainer.cpp
index 786ebc622..c141ae4b0 100644
--- a/Source/Laser/LaserParticleContainer.cpp
+++ b/Source/Laser/LaserParticleContainer.cpp
@@ -454,9 +454,12 @@ LaserParticleContainer::Evolve (int lev,
BL_PROFILE_VAR_STOP(blp_copy);
if (rho) {
- DepositCharge(pti, wp, rho, 0, 0, np_current, thread_num, lev, lev);
+ int* AMREX_RESTRICT ion_lev = nullptr;
+ DepositCharge(pti, wp, ion_lev, rho, 0, 0,
+ np_current, thread_num, lev, lev);
if (crho) {
- DepositCharge(pti, wp, crho, 0, np_current, np-np_current, thread_num, lev, lev-1);
+ DepositCharge(pti, wp, ion_lev, crho, 0, np_current,
+ np-np_current, thread_num, lev, lev-1);
}
}
@@ -509,13 +512,14 @@ LaserParticleContainer::Evolve (int lev,
// Current Deposition
//
// Deposit inside domains
- DepositCurrent(pti, wp, uxp, uyp, uzp, &jx, &jy, &jz,
+ 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, cjx, cjy, cjz,
+ DepositCurrent(pti, wp, uxp, uyp, uzp, ion_lev, cjx, cjy, cjz,
np_current, np-np_current, thread_num,
lev, lev-1, dt);
}
@@ -528,9 +532,12 @@ LaserParticleContainer::Evolve (int lev,
BL_PROFILE_VAR_STOP(blp_copy);
if (rho) {
- DepositCharge(pti, wp, rho, 1, 0, np_current, thread_num, lev, lev);
+ int* AMREX_RESTRICT ion_lev = nullptr;
+ DepositCharge(pti, wp, ion_lev, rho, 1, 0,
+ np_current, thread_num, lev, lev);
if (crho) {
- DepositCharge(pti, wp, crho, 1, np_current, np-np_current, thread_num, lev, lev-1);
+ DepositCharge(pti, wp, ion_lev, crho, 1, np_current,
+ np-np_current, thread_num, lev, lev-1);
}
}