From fabbe4dde65a48fc583f0ab407b7ee4ad77cecac Mon Sep 17 00:00:00 2001 From: MaxThevenet Date: Thu, 19 Dec 2019 17:26:47 -0800 Subject: oops --- Source/Particles/PhysicalParticleContainer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Source/Particles/PhysicalParticleContainer.cpp') 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 ppc_nd = plasma_injector->num_particles_per_cell_each_dim; const std::array& dx = WarpX::CellSize(lev); - amrex::Vector 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 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 -- cgit v1.2.3