From 93cdd24708e8e975409daebce758ddbcaaac9325 Mon Sep 17 00:00:00 2001 From: David Grote Date: Wed, 17 Mar 2021 15:41:53 -0700 Subject: Replaced almost all nGrow with nGrowVect (#1801) --- Source/Particles/WarpXParticleContainer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Particles/WarpXParticleContainer.cpp') diff --git a/Source/Particles/WarpXParticleContainer.cpp b/Source/Particles/WarpXParticleContainer.cpp index a42a12815..c36a57041 100644 --- a/Source/Particles/WarpXParticleContainer.cpp +++ b/Source/Particles/WarpXParticleContainer.cpp @@ -626,7 +626,7 @@ WarpXParticleContainer::DepositCharge (amrex::VectorsetVal(0.0, rho[lev]->nGrow()); + if (reset) rho[lev]->setVal(0.0, rho[lev]->nGrowVect()); // Loop over particle tiles and deposit charge on each level #ifdef AMREX_USE_OMP -- cgit v1.2.3