REMORA
Regional Modeling of Oceans Refined Adaptively
Loading...
Searching...
No Matches
REMORA_InitAnalyticBathymetry_ChannelTest.H
Go to the documentation of this file.
1
2 // Must not be doubly periodic, and must have terrain
4
5 // mf_h.setVal(geomdata.ProbHi(2));
6 mf_h.setVal(Real(50.0));
7
8 for ( MFIter mfi(mf_h, TilingIfNotGPU()); mfi.isValid(); ++mfi )
9 {
10 Array4<Real> const& h = (mf_h).array(mfi);
11
12 Box bx = mfi.tilebox();
13
14 Box bxD = bx;
15 bxD.makeSlab(2,0);
16
17 Gpu::streamSynchronize();
18
19 ParallelForRNG(bxD, [=] AMREX_GPU_DEVICE (int i, int j, int , auto /*engine*/)
20 {
21 h(i,j,0) = Real(50.0);
22 });
23
24 } // mfi
mf_h setVal(Real(50.0))
AMREX_ALWAYS_ASSERT(!NSPeriodic||!EWPeriodic)