diff options
author | 2019-12-19 17:26:47 -0800 | |
---|---|---|
committer | 2019-12-19 17:26:47 -0800 | |
commit | fabbe4dde65a48fc583f0ab407b7ee4ad77cecac (patch) | |
tree | a6f871702a311efa7f6d4ab581b70b6667c0b98c /Source/Particles/PhysicalParticleContainer.cpp | |
parent | 6c0b080598b8d34abb29f254b5e82d3f7dce38ec (diff) | |
download | WarpX-fabbe4dde65a48fc583f0ab407b7ee4ad77cecac.tar.gz WarpX-fabbe4dde65a48fc583f0ab407b7ee4ad77cecac.tar.zst WarpX-fabbe4dde65a48fc583f0ab407b7ee4ad77cecac.zip |
oops
Diffstat (limited to '')
-rw-r--r-- | Source/Particles/PhysicalParticleContainer.cpp | 6 |
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 |