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 + Real(0.5)) *
dx[0];
27 const Real h0 = Real(300.0);
28 const Real h1 = Real(10.0);
30 Real depth = h0 + (h1 - h0) * (
x - x0) / (x1 - x0);
31 depth = amrex::min(amrex::max(depth, h1), h0);