Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix clang-tidy errors in development branch #5296

Merged
merged 1 commit into from
Sep 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading