Skip to content

Commit

Permalink
Clang-Tidy changes in Src/Boundary (#3471)
Browse files Browse the repository at this point in the history
  • Loading branch information
WeiqunZhang authored Aug 4, 2023
1 parent 559766e commit 95ce691
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Src/Boundary/AMReX_InterpBndryData.H
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ InterpBndryDataT<MF>::setBndryValues (BndryRegisterT<MF> const& crse, int c_star
if (max_order==3 || max_order==1)
{
MFItInfo info;
if (Gpu::notInLaunchRegion()) info.SetDynamic(true);
if (Gpu::notInLaunchRegion()) { info.SetDynamic(true); }
#ifdef AMREX_USE_OMP
#pragma omp parallel if (Gpu::notInLaunchRegion())
#endif
Expand Down
5 changes: 3 additions & 2 deletions Src/Boundary/AMReX_Mask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ operator<< (std::ostream& os,
for (IntVect p = sm; p <= bg; m.box().next(p))
{
os << p;
for (int k = 0; k < ncomp; k++)
for (int k = 0; k < ncomp; k++) {
os << " " << m(p,k);
}
os << "\n";
}
os << ")\n";
Expand Down Expand Up @@ -65,7 +66,7 @@ operator>> (std::istream& is,
{
is >> q;
BL_ASSERT( p == q);
for( int k=0; k<ncomp; k++ ) is >> m(p,k);
for( int k=0; k<ncomp; k++ ) { is >> m(p,k); }
is.ignore(BL_IGNORE_MAX, '\n');
}
is.ignore(BL_IGNORE_MAX,'\n');
Expand Down
2 changes: 1 addition & 1 deletion Src/Boundary/AMReX_YAFluxRegister.H
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ YAFluxRegisterT<MF>::FineAdd (const MFIter& mfi,
//
const int li = mfi.LocalIndex();
Vector<FAB*>& cfp_fabs = m_cfp_fab[li];
if (cfp_fabs.empty()) return;
if (cfp_fabs.empty()) { return; }

const Box& tbx = mfi.tilebox();
const Box& bx = amrex::coarsen(tbx, m_ratio);
Expand Down

0 comments on commit 95ce691

Please sign in to comment.