From 95ce6910beef3abe3e2766e2469551f197b5a253 Mon Sep 17 00:00:00 2001 From: Weiqun Zhang Date: Fri, 4 Aug 2023 09:37:00 -0700 Subject: [PATCH] Clang-Tidy changes in Src/Boundary (#3471) --- Src/Boundary/AMReX_InterpBndryData.H | 2 +- Src/Boundary/AMReX_Mask.cpp | 5 +++-- Src/Boundary/AMReX_YAFluxRegister.H | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Src/Boundary/AMReX_InterpBndryData.H b/Src/Boundary/AMReX_InterpBndryData.H index a50cd62eb78..c2b57ba6114 100644 --- a/Src/Boundary/AMReX_InterpBndryData.H +++ b/Src/Boundary/AMReX_InterpBndryData.H @@ -169,7 +169,7 @@ InterpBndryDataT::setBndryValues (BndryRegisterT 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 diff --git a/Src/Boundary/AMReX_Mask.cpp b/Src/Boundary/AMReX_Mask.cpp index d8b4853de83..51150f15025 100644 --- a/Src/Boundary/AMReX_Mask.cpp +++ b/Src/Boundary/AMReX_Mask.cpp @@ -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"; @@ -65,7 +66,7 @@ operator>> (std::istream& is, { is >> q; BL_ASSERT( p == q); - for( int k=0; k> m(p,k); + for( int k=0; k> m(p,k); } is.ignore(BL_IGNORE_MAX, '\n'); } is.ignore(BL_IGNORE_MAX,'\n'); diff --git a/Src/Boundary/AMReX_YAFluxRegister.H b/Src/Boundary/AMReX_YAFluxRegister.H index 619b7100983..6f17c4de556 100644 --- a/Src/Boundary/AMReX_YAFluxRegister.H +++ b/Src/Boundary/AMReX_YAFluxRegister.H @@ -426,7 +426,7 @@ YAFluxRegisterT::FineAdd (const MFIter& mfi, // const int li = mfi.LocalIndex(); Vector& 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);