aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/PhysicalParticleContainer.cpp
diff options
context:
space:
mode:
authorGravatar MaxThevenet <mthevenet@lbl.gov> 2019-12-19 17:26:47 -0800
committerGravatar MaxThevenet <mthevenet@lbl.gov> 2019-12-19 17:26:47 -0800
commitfabbe4dde65a48fc583f0ab407b7ee4ad77cecac (patch)
treea6f871702a311efa7f6d4ab581b70b6667c0b98c /Source/Particles/PhysicalParticleContainer.cpp
parent6c0b080598b8d34abb29f254b5e82d3f7dce38ec (diff)
downloadWarpX-fabbe4dde65a48fc583f0ab407b7ee4ad77cecac.tar.gz
WarpX-fabbe4dde65a48fc583f0ab407b7ee4ad77cecac.tar.zst
WarpX-fabbe4dde65a48fc583f0ab407b7ee4ad77cecac.zip
oops
Diffstat (limited to '')
-rw-r--r--Source/Particles/PhysicalParticleContainer.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Particles/PhysicalParticleContainer.cpp b/Source/Particles/PhysicalParticleContainer.cpp
index de0f0a813..94d9bc363 100644
--- a/Source/Particles/PhysicalParticleContainer.cpp
+++ b/Source/Particles/PhysicalParticleContainer.cpp
@@ -1433,9 +1433,9 @@ PhysicalParticleContainer::SplitParticles(int lev)
const amrex::Vector<int> ppc_nd = plasma_injector->num_particles_per_cell_each_dim;
const std::array<Real,3>& dx = WarpX::CellSize(lev);
- amrex::Vector<Real> split_offset = {dx[0]/2._rt/ppc_nd[0],
- dx[1]/2._rt/ppc_nd[1],
- dx[2]/2._rt/ppc_nd[2]};
+ amrex::Vector<Real> split_offset = {dx[0]/2._rt,
+ dx[1]/2._rt,
+ dx[2]/2._rt};
if (ppc_nd[0] > 0){
// offset for split particles is computed as a function of cell size
// and number of particles per cell, so that a uniform distribution