Skip to content

Commit

Permalink
Fixed 2D case error -
Browse files Browse the repository at this point in the history
  • Loading branch information
ejyoo921 committed Aug 29, 2024
1 parent bb08807 commit 3c0b9ce
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Src/EB/AMReX_EB2_Level.H
Original file line number Diff line number Diff line change
Expand Up @@ -367,10 +367,6 @@ GShopLevel<G>::define_fine (G const& gshop, const Geometry& geom,
Array4<Real> const& bct = m_bndrycent.array(mfi);
Array4<Real> const& bnm = m_bndrynorm.array(mfi);

Array4<Real> const& multicut_arr_x = multicut_fcx.array(mfi);
Array4<Real> const& multicut_arr_y = multicut_fcy.array(mfi);
Array4<Real> const& multicut_arr_z = multicut_fcz.array(mfi);

AMREX_D_TERM(Array4<Real> const& apx = m_areafrac[0].array(mfi);,
Array4<Real> const& apy = m_areafrac[1].array(mfi);,
Array4<Real> const& apz = m_areafrac[2].array(mfi););
Expand Down Expand Up @@ -430,6 +426,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();

Array4<Real> const& multicut_arr_x = multicut_fcx.array(mfi);
Array4<Real> const& multicut_arr_y = multicut_fcy.array(mfi);
Array4<Real> const& multicut_arr_z = multicut_fcz.array(mfi);

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, plt_multiple_cuts, multicut_arr_x, multicut_arr_y, multicut_arr_z);
Expand Down Expand Up @@ -483,6 +483,9 @@ GShopLevel<G>::define_fine (G const& gshop, const Geometry& geom,
clst, geom);
}

Array4<Real> const& multicut_arr_x = multicut_fcx.array(mfi);
Array4<Real> const& multicut_arr_y = multicut_fcy.array(mfi);

nmc = build_faces(vbx, cfg, ftx, fty, lst, xip, yip, apx, apy, fcx, fcy,
dx, problo, cover_multiple_cuts, nsm, plt_multiple_cuts, multicut_arr_x, multicut_arr_y);

Expand Down

0 comments on commit 3c0b9ce

Please sign in to comment.