aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/PhysicalParticleContainer.cpp
diff options
context:
space:
mode:
authorGravatar Yinjian Zhao <yinjianzhao@lbl.gov> 2022-04-19 15:43:51 -0700
committerGravatar GitHub <noreply@github.com> 2022-04-19 15:43:51 -0700
commita45bc79affbcefc939fd783ec74d0e43d0807fce (patch)
treee6bfee7d5696bb62226ca491989488dc3258121c /Source/Particles/PhysicalParticleContainer.cpp
parent79c0d39bbad34780e70a4716a3307c7cadd46078 (diff)
downloadWarpX-a45bc79affbcefc939fd783ec74d0e43d0807fce.tar.gz
WarpX-a45bc79affbcefc939fd783ec74d0e43d0807fce.tar.zst
WarpX-a45bc79affbcefc939fd783ec74d0e43d0807fce.zip
Fix a bug about particle weight. (#3052)
Co-authored-by: Yinjian Zhao <yin@Yinjians-MacBook-Air.local>
Diffstat (limited to 'Source/Particles/PhysicalParticleContainer.cpp')
-rw-r--r--Source/Particles/PhysicalParticleContainer.cpp2
1 files changed, 1 insertions, 1 deletions
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