3 for ( MFIter mfi(mf_h, TilingIfNotGPU()); mfi.isValid(); ++mfi )
6 Array4<Real>
const& h = (mf_h).array(mfi);
8 Box bx = mfi.tilebox();
11 amrex::Real Xsize = Real(320000.0);
12 amrex::Real Esize = Real(320000.0);
13 amrex::Real depth = Real(5000.0);
15 if(!m_solverChoice.flat_bathymetry)
17 ParallelFor(makeSlab(gbx2,2,0), [=] AMREX_GPU_DEVICE (
int i,
int j,
int)
22 const Real
x =
prob_lo[0] + (i + Real(0.5)) *
dx[0];
23 const Real
y =
prob_lo[1] + (j + Real(0.5)) *
dx[1];
26 val1 = (
x-Real(0.5)*Xsize)/Real(40000.0);
27 val2 = (
y-Real(0.5)*Esize)/Real(40000.0);
33 ParallelFor(makeSlab(gbx2,2,0), [=] AMREX_GPU_DEVICE (
int i,
int j,
int )
36 h(i,j,0,1) = h(i,j,0);