From eacee4707c396cbb4578658149db940ff8f83574 Mon Sep 17 00:00:00 2001 From: Andrew Myers Date: Mon, 24 Sep 2018 13:30:13 -0700 Subject: also initialize the crho to zero --- Source/ParticleContainer.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'Source/ParticleContainer.cpp') 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); -- cgit v1.2.3