diff options
Diffstat (limited to '')
-rw-r--r-- | Source/Particles/WarpXParticleContainer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Particles/WarpXParticleContainer.cpp b/Source/Particles/WarpXParticleContainer.cpp index 95e656a4f..90772129b 100644 --- a/Source/Particles/WarpXParticleContainer.cpp +++ b/Source/Particles/WarpXParticleContainer.cpp @@ -426,7 +426,7 @@ WarpXParticleContainer::DepositCharge (WarpXParIter& pti, RealVector& wp, tilebox.grow(ngRho); const Box tb = amrex::convert( tilebox, rho->ixType().toIntVect() ); - const int nc = (rho->nComp() == 1 ? 1 : rho->nComp()/2); + const int nc = WarpX::ncomps; #ifdef AMREX_USE_GPU // No tiling on GPU: rho_fab points to the full rho array. |