diff options
author | 2022-04-19 15:43:51 -0700 | |
---|---|---|
committer | 2022-04-19 15:43:51 -0700 | |
commit | a45bc79affbcefc939fd783ec74d0e43d0807fce (patch) | |
tree | e6bfee7d5696bb62226ca491989488dc3258121c /Source/Particles/PhysicalParticleContainer.cpp | |
parent | 79c0d39bbad34780e70a4716a3307c7cadd46078 (diff) | |
download | WarpX-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.cpp | 2 |
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 |