diff --git a/src/convection/incflo_compute_advection_term.cpp b/src/convection/incflo_compute_advection_term.cpp index 3775c3714..d45a92854 100644 --- a/src/convection/incflo_compute_advection_term.cpp +++ b/src/convection/incflo_compute_advection_term.cpp @@ -307,13 +307,14 @@ incflo::compute_convective_term (Vector const& conv_u, for (MFIter mfi(m_leveldata[lev]->velocity,TilingIfNotGPU()); mfi.isValid(); ++mfi) { Box const& bx = mfi.growntilebox(1); Box const& vbx = mfi.validbox(); - Array4 const& umx = u_mac[lev]->array(mfi); - Array4 const& umy = v_mac[lev]->array(mfi); - Array4 const& umz = w_mac[lev]->array(mfi); + AMREX_D_TERM(Array4 const& umx = u_mac[lev]->array(mfi);, + Array4 const& umy = v_mac[lev]->array(mfi);, + Array4 const& umz = w_mac[lev]->array(mfi);); amrex::ParallelFor(bx, [=] AMREX_GPU_DEVICE (int i, int j, int k) noexcept { + // FIXME -- need to look at x=47 also? if ( i==48 && j==48 && k==47 && lev==1){ Real divc = (umx(i+1,j,k) - umx(i,j ,k ))*dxinv[0] + (umy(i,j+1,k) - umy(i ,j,k ))*dxinv[1] @@ -323,7 +324,7 @@ incflo::compute_convective_term (Vector const& conv_u, // Print()<<"umac "< const& conv_u, Print()<<"lev "<