diff options
author | 2019-08-08 17:07:04 -0700 | |
---|---|---|
committer | 2019-08-08 17:07:04 -0700 | |
commit | c45bde5edf520cd808a620e243e426ace445441d (patch) | |
tree | 70c9887c31aca285e29fadcc20cca3866a699511 /Source/Particles/WarpXParticleContainer.cpp | |
parent | 006c27ae9eb5ed31fdb4824b1c7e602712d5132f (diff) | |
download | WarpX-c45bde5edf520cd808a620e243e426ace445441d.tar.gz WarpX-c45bde5edf520cd808a620e243e426ace445441d.tar.zst WarpX-c45bde5edf520cd808a620e243e426ace445441d.zip |
Minor clean up in charge deposition conversion
Diffstat (limited to 'Source/Particles/WarpXParticleContainer.cpp')
-rw-r--r-- | Source/Particles/WarpXParticleContainer.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Particles/WarpXParticleContainer.cpp b/Source/Particles/WarpXParticleContainer.cpp index 32abae3ad..4ccddaedf 100644 --- a/Source/Particles/WarpXParticleContainer.cpp +++ b/Source/Particles/WarpXParticleContainer.cpp @@ -567,7 +567,7 @@ WarpXParticleContainer::DepositCharge (WarpXParIter& pti, RealVector& wp, const long ngRho = rho->nGrow(); const std::array<Real,3>& dx = WarpX::CellSize(std::max(depos_lev,0)); - Real q = this->charge; + const Real q = this->charge; BL_PROFILE_VAR_NS("PPC::ChargeDeposition", blp_ppc_chd); BL_PROFILE_VAR_NS("PPC::Evolve::Accumulate", blp_accumulate); @@ -586,11 +586,11 @@ WarpXParticleContainer::DepositCharge (WarpXParIter& pti, RealVector& wp, tilebox.grow(ngRho); #ifdef AMREX_USE_GPU - // No tiling on GPU: rho_ptr points to the full rho array. + // No tiling on GPU: rho_arr points to the full rho array. Array4<Real> const& rho_arr = rho->array(pti); #else - // Tiling is on: rho_ptr points to local_rho[thread_num] - Box tb = amrex::convert(tilebox, IntVect::TheUnitVector()); + // Tiling is on: rho_arr points to local_rho[thread_num] + const Box tb = amrex::convert(tilebox, IntVect::TheUnitVector()); local_rho[thread_num].resize(tb); |