Skip to content

Commit

Permalink
Fix clang-tidy errors in development branch (#5296)
Browse files Browse the repository at this point in the history
  • Loading branch information
EZoni committed Sep 19, 2024
1 parent cb5d0c8 commit d85cc04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/ablastr/fields/IntegratedGreenFunctionSolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit d85cc04

Please sign in to comment.