Skip to content

Commit

Permalink
Fixed whitespace things
Browse files Browse the repository at this point in the history
  • Loading branch information
Eunji Yoo committed Aug 30, 2024
1 parent 3c0b9ce commit 7db7054
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Src/EB/AMReX_EB2_3D_C.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include <AMReX_EB2_C.H>

#include <AMReX_MultiFab.H>
#include <AMReX_MultiFab.H>
#include <AMReX_PlotFileUtil.H>

namespace amrex::EB2 {
Expand Down
2 changes: 1 addition & 1 deletion Src/EB/AMReX_EB2_C.H
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ void build_cells (Box const& bx, Array4<EBCellFlag> const& cell,
Array4<Real> const& barea, Array4<Real> const& bcent,
Array4<Real> const& bnorm, Array4<EBCellFlag> const& ctmp,
Array4<Real> 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,
Expand Down
16 changes: 8 additions & 8 deletions Src/EB/AMReX_EB2_Level.H
Original file line number Diff line number Diff line change
Expand Up @@ -172,14 +172,14 @@ GShopLevel<G>::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);

Expand Down Expand Up @@ -298,9 +298,9 @@ GShopLevel<G>::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)),
Expand Down Expand Up @@ -501,14 +501,14 @@ GShopLevel<G>::define_fine (G const& gshop, const Geometry& geom,
ParallelAllReduce::Sum<int>({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) {
Expand Down

0 comments on commit 7db7054

Please sign in to comment.