8 for ( MFIter mfi(mf_h, TilingIfNotGPU()); mfi.isValid(); ++mfi )
10 Array4<Real>
const& h = (mf_h).array(mfi);
12 Box bx = mfi.tilebox();
14 gbx.grow(mf_h.nGrowVect());
19 ParallelFor(gbxD, [=] AMREX_GPU_DEVICE (
int i,
int j,
int)
25 const Real
x = x0 + (i + 0.5_rt) *
dx[0];
27 const Real h0 = 300.0_rt;
28 const Real h1 = 10.0_rt;
30 Real depth = h0 + (h1 - h0) * (
x - x0) / (x1 - x0);
31 depth = amrex::min(amrex::max(depth, h1), h0);