REMORA
Regional Modeling of Oceans Refined Adaptively
Loading...
Searching...
No Matches
REMORA_InitAnalyticBathymetry_Advection.H
Go to the documentation of this file.
1
2 mf_h.setVal(geomdata.ProbHi(2));
3
4 for ( MFIter mfi(mf_h, TilingIfNotGPU()); mfi.isValid(); ++mfi )
5 {
6 Array4<Real> const& h = (mf_h).array(mfi);
7
8 Gpu::streamSynchronize();
9 ParallelFor(Box(h), [=] AMREX_GPU_DEVICE (int i, int j, int k)
10 {
11 h(i,j,0,0) = -geomdata.ProbLo(2);
12 if (k==0) {
13 h(i,j,0,1) = h(i,j,0,0);
14 }
15 });
16 } // mfi