diff options
author | 2020-07-09 13:55:02 -0700 | |
---|---|---|
committer | 2020-07-09 13:55:02 -0700 | |
commit | b39c2e8296f6629122a706fb3c05a0d21e1585fa (patch) | |
tree | 0451a772c42efc001efd6993a2c898b6d3547342 /Source/Particles/WarpXParticleContainer.cpp | |
parent | c682d86fb526d02d7c584dfeb6d56eb151759f3a (diff) | |
download | WarpX-b39c2e8296f6629122a706fb3c05a0d21e1585fa.tar.gz WarpX-b39c2e8296f6629122a706fb3c05a0d21e1585fa.tar.zst WarpX-b39c2e8296f6629122a706fb3c05a0d21e1585fa.zip |
Fix bug and test with LaserAccelerationRZ (#1150)
Diffstat (limited to 'Source/Particles/WarpXParticleContainer.cpp')
-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. |