From a45bc79affbcefc939fd783ec74d0e43d0807fce Mon Sep 17 00:00:00 2001 From: Yinjian Zhao Date: Tue, 19 Apr 2022 15:43:51 -0700 Subject: Fix a bug about particle weight. (#3052) Co-authored-by: Yinjian Zhao --- Source/Particles/PhysicalParticleContainer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Particles/PhysicalParticleContainer.cpp') diff --git a/Source/Particles/PhysicalParticleContainer.cpp b/Source/Particles/PhysicalParticleContainer.cpp index f8ec5044b..cd22465df 100644 --- a/Source/Particles/PhysicalParticleContainer.cpp +++ b/Source/Particles/PhysicalParticleContainer.cpp @@ -1595,7 +1595,7 @@ PhysicalParticleContainer::AddPlasmaFlux (amrex::Real dt) } #endif - Real weight = dens * scale_fac * dt * num_ppc_real / pcounts[index]; + Real weight = dens * scale_fac * dt; #ifdef WARPX_DIM_RZ // The particle weight is proportional to the user-specified // flux (denoted as `dens` here) and the emission surface within -- cgit v1.2.3