aboutsummaryrefslogtreecommitdiff
path: root/Source/ParticleContainer.cpp
diff options
context:
space:
mode:
authorGravatar Andrew Myers <atmyers2@gmail.com> 2018-09-24 13:30:13 -0700
committerGravatar Remi Lehe <remi.lehe@normalesup.org> 2018-10-04 13:32:34 -0700
commiteacee4707c396cbb4578658149db940ff8f83574 (patch)
treef6970f4f21c86a140182c9214aedb639182c3686 /Source/ParticleContainer.cpp
parente79bf8f3e488e346df74c44cd6c607026dc5cef4 (diff)
downloadWarpX-eacee4707c396cbb4578658149db940ff8f83574.tar.gz
WarpX-eacee4707c396cbb4578658149db940ff8f83574.tar.zst
WarpX-eacee4707c396cbb4578658149db940ff8f83574.zip
also initialize the crho to zero
Diffstat (limited to 'Source/ParticleContainer.cpp')
-rw-r--r--Source/ParticleContainer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/ParticleContainer.cpp b/Source/ParticleContainer.cpp
index 71d22bc35..02de0a4db 100644
--- a/Source/ParticleContainer.cpp
+++ b/Source/ParticleContainer.cpp
@@ -209,6 +209,7 @@ MultiParticleContainer::Evolve (int lev,
if (cjy) cjy->setVal(0.0);
if (cjz) cjz->setVal(0.0);
if (rho) rho->setVal(0.0);
+ if (crho) crho->setVal(0.0);
for (auto& pc : allcontainers) {
pc->Evolve(lev, Ex, Ey, Ez, Bx, By, Bz, jx, jy, jz, cjx, cjy, cjz,
rho, crho, cEx, cEy, cEz, cBx, cBy, cBz, t, dt);