diff --git a/Source/Utils/ParticleUtils.H b/Source/Utils/ParticleUtils.H index 7e3c89228ea..55cd53f8728 100644 --- a/Source/Utils/ParticleUtils.H +++ b/Source/Utils/ParticleUtils.H @@ -30,7 +30,7 @@ namespace ParticleUtils { */ amrex::DenseBins findParticlesInEachCell (int lev, - amrex::MFIter const & mfi, + const amrex::MFIter & mfi, WarpXParticleContainer::ParticleTileType & ptile); /** diff --git a/Source/Utils/ParticleUtils.cpp b/Source/Utils/ParticleUtils.cpp index cba7c24afab..1cf2f4c98a1 100644 --- a/Source/Utils/ParticleUtils.cpp +++ b/Source/Utils/ParticleUtils.cpp @@ -36,10 +36,10 @@ namespace ParticleUtils /* Find the particles and count the particles that are in each cell. Note that this does *not* rearrange particle arrays */ - amrex::DenseBins + amrex::DenseBins findParticlesInEachCell (int lev, - amrex::MFIter const & mfi, - WarpXParticleContainer::ParticleTileType & ptile) { + const amrex::MFIter & mfi, + ParticleTileType & ptile) { // Extract particle structures for this tile int const np = ptile.numParticles();