diff --git a/Source/ablastr/fields/IntegratedGreenFunctionSolver.cpp b/Source/ablastr/fields/IntegratedGreenFunctionSolver.cpp index 5b9aa940d6a..ae11ad5087d 100644 --- a/Source/ablastr/fields/IntegratedGreenFunctionSolver.cpp +++ b/Source/ablastr/fields/IntegratedGreenFunctionSolver.cpp @@ -193,12 +193,12 @@ computePhiIGF ( amrex::MultiFab const & rho, // Prepare to perform global FFT // Since there is 1 MPI rank per box, here each MPI rank obtains its local box and the associated boxid - int local_boxid = amrex::ParallelDescriptor::MyProc(); // because of how we made the DistributionMapping + const int local_boxid = amrex::ParallelDescriptor::MyProc(); // because of how we made the DistributionMapping if (local_boxid < realspace_ba.size()) { // When not using heFFTe, there is only one box (the global box) // It is taken care of my MPI rank 0 ; other ranks have no work (hence the if condition) - amrex::Box local_nodal_box = realspace_ba[local_boxid]; + const amrex::Box local_nodal_box = realspace_ba[local_boxid]; amrex::Box local_box(local_nodal_box.smallEnd(), local_nodal_box.bigEnd()); local_box.shift(-realspace_box.smallEnd()); // This simplifies the setup because the global lo is zero now // Since we the domain decompostion is in the z-direction, setting up c_local_box is simple.