aboutsummaryrefslogtreecommitdiff
path: root/Source/Laser/LaserParticleContainer.cpp
diff options
context:
space:
mode:
authorGravatar MaxThevenet <mthevenet@lbl.gov> 2019-05-07 16:42:19 -0700
committerGravatar MaxThevenet <mthevenet@lbl.gov> 2019-05-07 16:42:19 -0700
commit65cfcd2bd9bdc255fbeb15c073cd0b12ca6aa0d5 (patch)
tree495545b3c6b339e342dcbfe607dcd3c34a2d622d /Source/Laser/LaserParticleContainer.cpp
parentb0e989dbb5006719426e67912d7c78f7f5aea796 (diff)
downloadWarpX-65cfcd2bd9bdc255fbeb15c073cd0b12ca6aa0d5.tar.gz
WarpX-65cfcd2bd9bdc255fbeb15c073cd0b12ca6aa0d5.tar.zst
WarpX-65cfcd2bd9bdc255fbeb15c073cd0b12ca6aa0d5.zip
remove legacy code for p_pos
Diffstat (limited to 'Source/Laser/LaserParticleContainer.cpp')
-rw-r--r--Source/Laser/LaserParticleContainer.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/Source/Laser/LaserParticleContainer.cpp b/Source/Laser/LaserParticleContainer.cpp
index a45da540d..8a2590e5e 100644
--- a/Source/Laser/LaserParticleContainer.cpp
+++ b/Source/Laser/LaserParticleContainer.cpp
@@ -164,12 +164,6 @@ LaserParticleContainer::LaserParticleContainer (AmrCore* amr_core, int ispecies,
// If laser antenna initially outside of the box, store its theoretical
// position in z_antenna_th
updated_position = position;
- // Convert updated position to Real* to use RealBox.contains()
-#if (AMREX_SPACEDIM == 3)
- const Real* p_pos = updated_position.dataPtr();
-#else
- const Real p_pos[2] = {updated_position[0], updated_position[2]};
-#endif
// Sanity checks
int dir = WarpX::moving_window_dir;