aboutsummaryrefslogtreecommitdiff
path: root/Source/LaserParticleContainer.cpp
diff options
context:
space:
mode:
authorGravatar Andrew Myers <atmyers@lbl.gov> 2018-10-16 14:38:50 -0400
committerGravatar Andrew Myers <atmyers@lbl.gov> 2018-10-16 14:38:50 -0400
commitcb420af9d09b5c28026d10711a274c2e0370ee25 (patch)
treedaddb3d105887c82c5f52ae615273b0a5e6d8ca1 /Source/LaserParticleContainer.cpp
parent0b62ea6550c8b85c8cf39b2af4cd1f1aeecb03a0 (diff)
downloadWarpX-cb420af9d09b5c28026d10711a274c2e0370ee25.tar.gz
WarpX-cb420af9d09b5c28026d10711a274c2e0370ee25.tar.zst
WarpX-cb420af9d09b5c28026d10711a274c2e0370ee25.zip
add timer to LaserParticleContainer
Diffstat (limited to 'Source/LaserParticleContainer.cpp')
-rw-r--r--Source/LaserParticleContainer.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/Source/LaserParticleContainer.cpp b/Source/LaserParticleContainer.cpp
index 705a6ac3c..23ba2457c 100644
--- a/Source/LaserParticleContainer.cpp
+++ b/Source/LaserParticleContainer.cpp
@@ -289,6 +289,7 @@ LaserParticleContainer::Evolve (int lev,
BL_PROFILE_VAR_NS("Laser::Evolve::Copy", blp_copy);
BL_PROFILE_VAR_NS("PICSAR::LaserParticlePush", blp_pxr_pp);
BL_PROFILE_VAR_NS("PICSAR::LaserCurrentDepo", blp_pxr_cd);
+ BL_PROFILE_VAR_NS("Laser::Evolve::Accumulate", blp_accumulate);
const std::array<Real,3>& dx = WarpX::CellSize(lev);
@@ -510,12 +511,16 @@ LaserParticleContainer::Evolve (int lev,
&dt, &dx[0], &dx[1], &dx[2],
&WarpX::nox,&WarpX::noy,&WarpX::noz,
&lvect,&WarpX::current_deposition_algo);
+
+ BL_PROFILE_VAR_STOP(blp_pxr_cd);
+
+ BL_PROFILE_VAR_START(blp_accumulate);
jxfab.atomicAdd(local_jx);
jyfab.atomicAdd(local_jy);
jzfab.atomicAdd(local_jz);
-
- BL_PROFILE_VAR_STOP(blp_pxr_cd);
+
+ BL_PROFILE_VAR_STOP(blp_accumulate);
if (rho) depositCharge(rho,1);