diff options
author | 2017-11-20 09:56:27 -0800 | |
---|---|---|
committer | 2017-11-20 09:56:27 -0800 | |
commit | 0bd9ab04c20a1d91f1d956b9109ad942a804631d (patch) | |
tree | dd00f5b032f98da6e02bff971d346232e66c1ed0 /Source/PhysicalParticleContainer.cpp | |
parent | 813b2fce7451c5169fe60c2cb20dba8ade6e53eb (diff) | |
download | WarpX-0bd9ab04c20a1d91f1d956b9109ad942a804631d.tar.gz WarpX-0bd9ab04c20a1d91f1d956b9109ad942a804631d.tar.zst WarpX-0bd9ab04c20a1d91f1d956b9109ad942a804631d.zip |
Fix another bug in the injection
Diffstat (limited to 'Source/PhysicalParticleContainer.cpp')
-rw-r--r-- | Source/PhysicalParticleContainer.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Source/PhysicalParticleContainer.cpp b/Source/PhysicalParticleContainer.cpp index 95e04f345..9687b30b3 100644 --- a/Source/PhysicalParticleContainer.cpp +++ b/Source/PhysicalParticleContainer.cpp @@ -131,7 +131,7 @@ PhysicalParticleContainer::AddPlasma(int lev, RealBox part_realbox ) #if BL_SPACEDIM==3 scale_fac = dx[0]*dx[1]*dx[2]/num_ppc; #elif BL_SPACEDIM==2 - scale_fac = dx[0]*dx[2]/num_ppc; + scale_fac = dx[0]*dx[1]/num_ppc; #endif #ifdef _OPENMP @@ -150,10 +150,6 @@ PhysicalParticleContainer::AddPlasma(int lev, RealBox part_realbox ) std::array<Real,PIdx::nattribs> attribs; attribs.fill(0.0); - std::cout << "0 " << part_realbox.lo(0) << " " << part_realbox.hi(0) << " " << dx[0] << std::endl; - std::cout << "1 " << part_realbox.lo(1) << " " << part_realbox.hi(1) << " " << dx[1] << std::endl; - std::cout << "2 " << part_realbox.lo(2) << " " << part_realbox.hi(2) << " " << dx[2] << std::endl; - // Loop through the tiles for (MFIter mfi = MakeMFIter(lev); mfi.isValid(); ++mfi) { |