Skip to content

Commit

Permalink
Cleaned up the plt names for multicuts in EB2_3D_C using *hp. Removed…
Browse files Browse the repository at this point in the history
… unnecessary Printings in EB2_Level.H
  • Loading branch information
ejyoo921 committed Apr 4, 2024
1 parent 465441b commit f403e00
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
12 changes: 9 additions & 3 deletions Src/EB/AMReX_EB2_3D_C.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,9 @@ int build_faces (Box const& bx, Array4<EBCellFlag> const& cell,
stlobj.fill(flag_xbx,{0,0,0}, geom, -1.0, 1.0);

// write plot file
WriteSingleLevelPlotfile("plt.x", flag_xbx, {"marker_x"}, geom, 0.0, 0);
std::string m_plot_file{"plt.x."};
const std::string& plotfilename = amrex::Concatenate(m_plot_file, *hp);
WriteSingleLevelPlotfile(plotfilename, flag_xbx, {"marker_x"}, geom, 0.0, 0);
// Finished plot file ----------------------------------------------------------------

int ncuts = 0;
Expand Down Expand Up @@ -696,7 +698,9 @@ int build_faces (Box const& bx, Array4<EBCellFlag> const& cell,
stlobj.fill(flag_ybx,{0,0,0}, geom, -1.0, 1.0);

// write plot file
WriteSingleLevelPlotfile("plt.y", flag_ybx, {"marker_y"}, geom, 0.0, 0);
std::string m_plot_file{"plt.y."};
const std::string& plotfilename = amrex::Concatenate(m_plot_file, *hp);
WriteSingleLevelPlotfile(plotfilename, flag_ybx, {"marker_y"}, geom, 0.0, 0);
// Finished plot file ----------------------------------------------------------------

int ncuts = 0;
Expand Down Expand Up @@ -901,7 +905,9 @@ int build_faces (Box const& bx, Array4<EBCellFlag> const& cell,
stlobj.fill(flag_zbx,{0,0,0}, geom, -1.0, 1.0);

// write plot file
WriteSingleLevelPlotfile("plt.z", flag_zbx, {"marker_z"}, geom, 0.0, 0);
std::string m_plot_file{"plt.z."};
const std::string& plotfilename = amrex::Concatenate(m_plot_file, *hp);
WriteSingleLevelPlotfile(plotfilename, flag_zbx, {"marker_z"}, geom, 0.0, 0);
// Finished plot file ----------------------------------------------------------------

int ncuts = 0;
Expand Down
4 changes: 0 additions & 4 deletions Src/EB/AMReX_EB2_Level.H
Original file line number Diff line number Diff line change
Expand Up @@ -423,14 +423,10 @@ GShopLevel<G>::define_fine (G const& gshop, const Geometry& geom,
Array4<Real> const& ym2 = M2[1].array();
Array4<Real> const& zm2 = M2[2].array();

amrex::Print() << "HERE-Level" << "\n"; // EY

nmc = build_faces(vbx, cfg, ftx, fty, ftz, xdg, ydg, zdg, lst,
xip, yip, zip, apx, apy, apz, fcx, fcy, fcz,
xm2, ym2, zm2, dx, problo, cover_multiple_cuts);

amrex::Print() << "HERE-after build faces" << "\n"; // EY

cellflagtmp.resize(m_cellflag[mfi].box());
Elixir cellflagtmp_eli = cellflagtmp.elixir();
Array4<EBCellFlag> const& cfgtmp = cellflagtmp.array();
Expand Down

0 comments on commit f403e00

Please sign in to comment.