aboutsummaryrefslogtreecommitdiff
path: root/Source/Diagnostics/ReducedDiags/FieldProbeParticleContainer.cpp
diff options
context:
space:
mode:
authorGravatar Roelof Groenewald <40245517+roelof-groenewald@users.noreply.github.com> 2022-11-28 16:07:23 -0800
committerGravatar GitHub <noreply@github.com> 2022-11-28 16:07:23 -0800
commit6fd619e4831e9abecbbe8fa570319293b546916a (patch)
treefcdd8cab3527afda245153cc2543e7fa74691f3f /Source/Diagnostics/ReducedDiags/FieldProbeParticleContainer.cpp
parent778c6183a5d5f845f95d054b06163c48b1438852 (diff)
downloadWarpX-6fd619e4831e9abecbbe8fa570319293b546916a.tar.gz
WarpX-6fd619e4831e9abecbbe8fa570319293b546916a.tar.zst
WarpX-6fd619e4831e9abecbbe8fa570319293b546916a.zip
fix bug with reduced diagnostic FieldProbe in 1d (#3535)
Diffstat (limited to '')
-rw-r--r--Source/Diagnostics/ReducedDiags/FieldProbeParticleContainer.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/Diagnostics/ReducedDiags/FieldProbeParticleContainer.cpp b/Source/Diagnostics/ReducedDiags/FieldProbeParticleContainer.cpp
index a49e1e08e..35e25fb4b 100644
--- a/Source/Diagnostics/ReducedDiags/FieldProbeParticleContainer.cpp
+++ b/Source/Diagnostics/ReducedDiags/FieldProbeParticleContainer.cpp
@@ -107,9 +107,12 @@ FieldProbeParticleContainer::AddNParticles (int lev,
p.pos(1) = y[i];
p.pos(2) = z[i];
#elif defined(WARPX_DIM_XZ) || defined(WARPX_DIM_RZ)
- amrex::ignore_unused(y) ;
+ amrex::ignore_unused(y);
p.pos(0) = x[i];
p.pos(1) = z[i];
+#elif defined(WARPX_DIM_1D_Z)
+ amrex::ignore_unused(x, y);
+ p.pos(0) = z[i];
#endif
// write position, cpu id, and particle id to particle
pinned_tile.push_back(p);