From 3c0b9ce37dde4d611ab02932bb4b15c40eb05807 Mon Sep 17 00:00:00 2001 From: Yoo Date: Thu, 29 Aug 2024 13:56:07 -0600 Subject: [PATCH] Fixed 2D case error - --- Src/EB/AMReX_EB2_Level.H | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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);