aboutsummaryrefslogtreecommitdiff
path: root/Source/Parallelization/WarpXRegrid.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Parallelization/WarpXRegrid.cpp')
-rw-r--r--Source/Parallelization/WarpXRegrid.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Parallelization/WarpXRegrid.cpp b/Source/Parallelization/WarpXRegrid.cpp
index 25eff3045..4d10b3691 100644
--- a/Source/Parallelization/WarpXRegrid.cpp
+++ b/Source/Parallelization/WarpXRegrid.cpp
@@ -292,7 +292,7 @@ WarpX::RemakeLevel (int lev, Real /*time*/, const BoxArray& ba, const Distributi
if (spectral_solver_cp[lev] != nullptr) {
BoxArray cba = ba;
cba.coarsen(refRatio(lev-1));
- std::array<Real,3> cdx = CellSize(lev-1);
+ const std::array<Real,3> cdx = CellSize(lev-1);
// Get the cell-centered box
BoxArray c_realspace_ba = cba; // Copy box
@@ -345,7 +345,7 @@ WarpX::RemakeLevel (int lev, Real /*time*/, const BoxArray& ba, const Distributi
{
costs[lev] = std::make_unique<LayoutData<Real>>(ba, dm);
const auto iarr = costs[lev]->IndexArray();
- for (int i : iarr)
+ for (const auto& i : iarr)
{
(*costs[lev])[i] = 0.0;
setLoadBalanceEfficiency(lev, -1);
@@ -402,7 +402,7 @@ WarpX::ResetCosts ()
for (int lev = 0; lev <= finest_level; ++lev)
{
const auto iarr = costs[lev]->IndexArray();
- for (int i : iarr)
+ for (const auto& i : iarr)
{
// Reset costs
(*costs[lev])[i] = 0.0;