aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/WarpXParticleContainer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Particles/WarpXParticleContainer.cpp')
-rw-r--r--Source/Particles/WarpXParticleContainer.cpp2
1 files changed, 1 insertions, 1 deletions
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::Vector<std::unique_ptr<amrex::Mult
for (int lev = 0; lev <= finest_level; ++lev) {
// Reset the `rho` array if `reset` is True
- if (reset) rho[lev]->setVal(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