10 for (MFIter mfi(mf_h, TilingIfNotGPU()); mfi.isValid(); ++mfi)
12 const Box &bx = mfi.growntilebox(IntVect(
NGROW,
NGROW,0));
14 Array4< Real>
const& h = mf_h.array(mfi);
15 Array4<const Real>
const& x_r = remora.vec_xr[lev]->const_array(mfi);
16 Array4<const Real>
const& y_r = remora.vec_yr[lev]->const_array(mfi);
18 ParallelFor(bx, [=] AMREX_GPU_DEVICE(
int i,
int j,
int )
noexcept
20 h(i,j,0) = Real(10.0) + (x_r(i,j,0) - Real(4200.0)) * (x_r(i,j,0) - Real(4200.0)) * Real(5.0) / (Real(4200.0) * Real(4200.0)) -
21 (y_r(i,j,0) - Real(375.0)) * (y_r(i,j,0) - Real(375.0)) * Real(5.0) / (Real(375.0) * Real(375.0));