From 0bd9ab04c20a1d91f1d956b9109ad942a804631d Mon Sep 17 00:00:00 2001 From: Remi Lehe Date: Mon, 20 Nov 2017 09:56:27 -0800 Subject: Fix another bug in the injection --- Source/PhysicalParticleContainer.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'Source/PhysicalParticleContainer.cpp') 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 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) { -- cgit v1.2.3