aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/PhysicalParticleContainer.cpp
diff options
context:
space:
mode:
authorGravatar David Grote <grote1@llnl.gov> 2023-02-01 12:09:27 -0800
committerGravatar GitHub <noreply@github.com> 2023-02-01 12:09:27 -0800
commita0d53838f77e788c7f369b294e8e751bbf74d8bd (patch)
tree6517c03e05f0369478dbd0934dd8e7d5738ff2e4 /Source/Particles/PhysicalParticleContainer.cpp
parentc0d9f4c3937c2bd7655dd154d6dabb793c2c8936 (diff)
downloadWarpX-a0d53838f77e788c7f369b294e8e751bbf74d8bd.tar.gz
WarpX-a0d53838f77e788c7f369b294e8e751bbf74d8bd.tar.zst
WarpX-a0d53838f77e788c7f369b294e8e751bbf74d8bd.zip
Fix NUniformPerCell for 1D (#3659)
* Fix NUniformPerCell for 1D * Fix CI benchmarks
Diffstat (limited to 'Source/Particles/PhysicalParticleContainer.cpp')
-rw-r--r--Source/Particles/PhysicalParticleContainer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Particles/PhysicalParticleContainer.cpp b/Source/Particles/PhysicalParticleContainer.cpp
index 9dd49017a..680d794c6 100644
--- a/Source/Particles/PhysicalParticleContainer.cpp
+++ b/Source/Particles/PhysicalParticleContainer.cpp
@@ -176,7 +176,7 @@ namespace
#else
pos.x = 0.0_rt;
pos.y = 0.0_rt;
- pos.z = lo_corner[0] + (iv[0]+r.z)*dx[0];
+ pos.z = lo_corner[0] + (iv[0]+r.x)*dx[0];
#endif
return pos;
}