diff options
author | 2019-05-06 20:54:02 -0400 | |
---|---|---|
committer | 2019-05-06 20:54:02 -0400 | |
commit | 9f99d4f819c7760d174c8888134496bdee5b03f0 (patch) | |
tree | cb2203482d801f43dfe1c5b29b054ab47eed59de /Source/Particles/WarpXParticleContainer.cpp | |
parent | 4a34f2ea9ab825a0af92fc0c03017043951032e7 (diff) | |
download | WarpX-9f99d4f819c7760d174c8888134496bdee5b03f0.tar.gz WarpX-9f99d4f819c7760d174c8888134496bdee5b03f0.tar.zst WarpX-9f99d4f819c7760d174c8888134496bdee5b03f0.zip |
printoutstatement to debug the swap in rho_old and rho_new in the gpu vs cpu
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 2edd3c636..695faaa62 100644 --- a/Source/Particles/WarpXParticleContainer.cpp +++ b/Source/Particles/WarpXParticleContainer.cpp @@ -608,7 +608,7 @@ WarpXParticleContainer::DepositCharge ( WarpXParIter& pti, RealVector& wp, const std::array<Real, 3>& xyzmin = xyzmin_tile; #ifdef AMREX_USE_GPU - data_ptr = (*rhomf)[pti].dataPtr(); + data_ptr = (*rhomf)[pti].dataPtr(icomp); auto rholen = (*rhomf)[pti].length(); #else tile_box.grow(ngRho); |