From 7db7054266a8a2c0d4b03b76beb1ef5c38303f81 Mon Sep 17 00:00:00 2001 From: Eunji Yoo Date: Fri, 30 Aug 2024 10:36:12 -0600 Subject: [PATCH] Fixed whitespace things --- Src/EB/AMReX_EB2_3D_C.cpp | 2 +- Src/EB/AMReX_EB2_C.H | 2 +- Src/EB/AMReX_EB2_Level.H | 16 ++++++++-------- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Src/EB/AMReX_EB2_3D_C.cpp b/Src/EB/AMReX_EB2_3D_C.cpp index 70c894decab..9073d418429 100644 --- a/Src/EB/AMReX_EB2_3D_C.cpp +++ b/Src/EB/AMReX_EB2_3D_C.cpp @@ -1,6 +1,6 @@ #include -#include +#include #include namespace amrex::EB2 { diff --git a/Src/EB/AMReX_EB2_C.H b/Src/EB/AMReX_EB2_C.H index e0c931aeef6..140b24ffc6a 100644 --- a/Src/EB/AMReX_EB2_C.H +++ b/Src/EB/AMReX_EB2_C.H @@ -71,7 +71,7 @@ void build_cells (Box const& bx, Array4 const& cell, Array4 const& barea, Array4 const& bcent, Array4 const& bnorm, Array4 const& ctmp, Array4 const& levset, Real small_volfrac, Geometry const& geom, - bool extend_domain_face, bool cover_multiple_cuts, bool plt_multiple_cuts, + bool extend_domain_face, bool cover_multiple_cuts, bool plt_multiple_cuts, int& nsmallcells, int& nmulticuts) noexcept; void set_connection_flags(Box const& bx, Box const& bxg1, diff --git a/Src/EB/AMReX_EB2_Level.H b/Src/EB/AMReX_EB2_Level.H index 7e7ceaf71a4..600132b0686 100644 --- a/Src/EB/AMReX_EB2_Level.H +++ b/Src/EB/AMReX_EB2_Level.H @@ -172,14 +172,14 @@ GShopLevel::define_fine (G const& gshop, const Geometry& geom, Real small_volfrac = 1.e-14; #endif bool cover_multiple_cuts = false; - bool plt_multiple_cuts = false; + bool plt_multiple_cuts = false; int maxiter = 32; { ParmParse pp("eb2"); pp.queryAdd("small_volfrac", small_volfrac); pp.queryAdd("cover_multiple_cuts", cover_multiple_cuts); pp.queryAdd("maxiter", maxiter); - pp.queryAdd("plt_multiple_cuts", plt_multiple_cuts); + pp.queryAdd("plt_multiple_cuts", plt_multiple_cuts); } maxiter = std::min(100000, maxiter); @@ -298,9 +298,9 @@ GShopLevel::define_fine (G const& gshop, const Geometry& geom, m_bndrycent.define(m_grids, m_dmap, AMREX_SPACEDIM, ng, mf_info); m_bndrynorm.define(m_grids, m_dmap, AMREX_SPACEDIM, ng, mf_info); - multicut_fcx.define(m_grids, m_dmap, 1, ng, mf_info); - multicut_fcy.define(m_grids, m_dmap, 1, ng, mf_info); - multicut_fcz.define(m_grids, m_dmap, 1, ng, mf_info); + multicut_fcx.define(m_grids, m_dmap, 1, ng, mf_info); + multicut_fcy.define(m_grids, m_dmap, 1, ng, mf_info); + multicut_fcz.define(m_grids, m_dmap, 1, ng, mf_info); for (int idim = 0; idim < AMREX_SPACEDIM; ++idim) { m_areafrac[idim].define(amrex::convert(m_grids, IntVect::TheDimensionVector(idim)), @@ -501,14 +501,14 @@ GShopLevel::define_fine (G const& gshop, const Geometry& geom, ParallelAllReduce::Sum({nsmallcells,nmulticuts}, ParallelContext::CommunicatorSub()); if (plt_multiple_cuts && nmulticuts > 0) { - amrex::Print() << "Total number of multicuts = " << nmulticuts << "\n"; + amrex::Print() << "Total number of multicuts = " << nmulticuts << "\n"; amrex::Print() << "plotting multicut locations..." << "\n"; WriteSingleLevelPlotfile("plt.x", multicut_fcx, {"multicut_x"}, geom, 0.0, 0); WriteSingleLevelPlotfile("plt.y", multicut_fcy, {"multicut_y"}, geom, 0.0, 0); WriteSingleLevelPlotfile("plt.z", multicut_fcz, {"multicut_z"}, geom, 0.0, 0); - - amrex::Abort("amrex::EB2::build_faces: more than 2 cuts not supported"); + + amrex::Abort("amrex::EB2::build_faces: more than 2 cuts not supported"); } if (nsmallcells == 0 && nmulticuts == 0) {