Skip to content

Commit

Permalink
Deleted non-necessary printings.
Browse files Browse the repository at this point in the history
  • Loading branch information
ejyoo921 committed Jul 29, 2024
1 parent 4b4b890 commit 823e97f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
1 change: 0 additions & 1 deletion Src/EB/AMReX_EB2_3D_C.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,6 @@ int build_faces (Box const& bx, Array4<EBCellFlag> const& cell,
Gpu::Atomic::Add(dp,1);
if (plt_multiple_cuts){
multicut_arr(i,j,k) = 10.0;
amrex::Print() << "Multicut array (i,j,k) = (" << i << ", " << j << ", " << k << ") " << "\n";
// Not GPU friendly
amrex::PrintToFile("loc_multicuts") << "fx: (x,y,z) = (" << problo[0]+(i)*dx[0] << ","<< problo[1]+(j)*dx[1] << "," << problo[2]+(k)*dx[2] << ") \n";
}
Expand Down
16 changes: 2 additions & 14 deletions Src/EB/AMReX_EB2_Level.H
Original file line number Diff line number Diff line change
Expand Up @@ -492,21 +492,9 @@ GShopLevel<G>::define_fine (G const& gshop, const Geometry& geom,
nmulticuts += nmc;
}
// EY: Here -> make plot file
if (plt_multiple_cuts){
for (MFIter mfi(m_mgf); mfi.isValid(); ++mfi)
{
AMREX_HOST_DEVICE_FOR_3D ( domain_grown, i, j, k,
{
Array4<Real> const& multicut_arr = multicut_bx.array(mfi);
if (multicut_arr(i,j,k) > 1) // Need to fix this condition
{
amrex::Print() << "Multicut array = (" << i << ", " << j << ", " << k << ") \n";
}
});
}
// Output: plotfiles
if (plt_multiple_cuts)
{
WriteSingleLevelPlotfile("plt", multicut_bx, {"multicut"}, geom, 0.0, 0);

amrex::Abort("amrex::EB2::build_faces: more than 2 cuts not supported");
}
}
Expand Down

0 comments on commit 823e97f

Please sign in to comment.