10 for (MFIter mfi(mf_cons, TilingIfNotGPU()); mfi.isValid(); ++mfi)
12 const Box &bx = mfi.tilebox();
15 Array4< Real>
const& state = mf_cons.array(mfi);
16 Array4< Real>
const& x_vel = mf_xvel.array(mfi);
17 Array4< Real>
const& y_vel = mf_yvel.array(mfi);
19 Array4<const Real>
const& x_r = remora.vec_xr[lev]->const_array(mfi);
21 ParallelFor(bx, [=] AMREX_GPU_DEVICE(
int i,
int j,
int k)
noexcept
27 state(i,j,k,
Temp_comp)= (x_r(i,j,0) < Real(1000.)) ? Real(5.0) : Real(10.0);
33 ParallelFor(bx, [=] AMREX_GPU_DEVICE(
int i,
int j,
int k)
noexcept
35 [[maybe_unused]]
const Real
x = x_r(i,j,0);
38 state(i, j, k,
Salt_comp) = Real(10.0) - Real(10.0) * (x_r(i,j,0) - Real(8400.0)) / Real(8400.0);
48 const Box& xbx = surroundingNodes(bx,0);
49 const Box& ybx = surroundingNodes(bx,1);
50 ParallelFor(xbx, [=] AMREX_GPU_DEVICE(
int i,
int j,
int k)
noexcept
52 x_vel(i, j, k) =
zero;
54 ParallelFor(ybx, [=] AMREX_GPU_DEVICE(
int i,
int j,
int k)
noexcept
56 y_vel(i, j, k) =
zero;