From d85cc04e280be177e7f73d3a6e8934d2bd886072 Mon Sep 17 00:00:00 2001 From: Edoardo Zoni <59625522+EZoni@users.noreply.github.com> Date: Thu, 19 Sep 2024 00:50:09 -0700 Subject: [PATCH] Fix clang-tidy errors in `development` branch (#5296) --- Source/ablastr/fields/IntegratedGreenFunctionSolver.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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.