diff --git a/Src/EB/AMReX_EB2_Level.H b/Src/EB/AMReX_EB2_Level.H index 9346a6448a2..7e7ceaf71a4 100644 --- a/Src/EB/AMReX_EB2_Level.H +++ b/Src/EB/AMReX_EB2_Level.H @@ -367,10 +367,6 @@ GShopLevel::define_fine (G const& gshop, const Geometry& geom, Array4 const& bct = m_bndrycent.array(mfi); Array4 const& bnm = m_bndrynorm.array(mfi); - Array4 const& multicut_arr_x = multicut_fcx.array(mfi); - Array4 const& multicut_arr_y = multicut_fcy.array(mfi); - Array4 const& multicut_arr_z = multicut_fcz.array(mfi); - AMREX_D_TERM(Array4 const& apx = m_areafrac[0].array(mfi);, Array4 const& apy = m_areafrac[1].array(mfi);, Array4 const& apz = m_areafrac[2].array(mfi);); @@ -430,6 +426,10 @@ GShopLevel::define_fine (G const& gshop, const Geometry& geom, Array4 const& ym2 = M2[1].array(); Array4 const& zm2 = M2[2].array(); + Array4 const& multicut_arr_x = multicut_fcx.array(mfi); + Array4 const& multicut_arr_y = multicut_fcy.array(mfi); + Array4 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); @@ -483,6 +483,9 @@ GShopLevel::define_fine (G const& gshop, const Geometry& geom, clst, geom); } + Array4 const& multicut_arr_x = multicut_fcx.array(mfi); + Array4 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);