14 for (MFIter mfi(mf_cons, TilingIfNotGPU()); mfi.isValid(); ++mfi)
16 const Box &bx = mfi.tilebox();
20 Array4< Real>
const& state = mf_cons.array(mfi);
21 Array4< Real>
const& x_vel = mf_xvel.array(mfi);
22 Array4< Real>
const& y_vel = mf_yvel.array(mfi);
24 Array4<const Real>
const& z_r = remora.vec_z_r[lev]->const_array(mfi);
26 ParallelFor(bx, [=] AMREX_GPU_DEVICE(
int i,
int j,
int k)
noexcept
31 const Real
z = z_r(i,j,k);
35 state(i,j,k,
Temp_comp)=
T0+Real(8.0)*std::exp(
z/Real(50.0));
43 const Real
x =
prob_lo[0] + (i + Real(0.5)) *
dx[0] - xcent;
44 const Real
y =
prob_lo[1] + (j + Real(0.5)) *
dx[1] - ycent*Real(0.5);
45 const Real r2 =
x*
x +
y*
y;
47 const Real radsq = rad*rad;
53 const Box& xbx = surroundingNodes(bx,0);
54 const Box& ybx = surroundingNodes(bx,1);
55 ParallelFor(xbx, [=] AMREX_GPU_DEVICE(
int i,
int j,
int k)
noexcept
57 const Real
z = -z_r(i,j,k);
60 ParallelFor(ybx, [=] AMREX_GPU_DEVICE(
int i,
int j,
int k)
noexcept
62 y_vel(i, j, k) =
zero;