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
3
AMREX_ALWAYS_ASSERT
( !
NSPeriodic
|| !
EWPeriodic
);
4
AMREX_ALWAYS_ASSERT
( !m_solverChoice.flat_bathymetry);
5
6
// mf_h.setVal(geomdata.ProbHi(2));
7
mf_h.setVal(50.0_rt);
8
9
for
( MFIter mfi(mf_h, TilingIfNotGPU()); mfi.isValid(); ++mfi )
10
{
11
Array4<Real>
const
& h = (mf_h).array(mfi);
12
13
Box bx = mfi.tilebox();
14
15
Box bxD = bx;
16
bxD.makeSlab(2,0);
17
18
Gpu::streamSynchronize();
19
20
ParallelForRNG(bxD, [=] AMREX_GPU_DEVICE (
int
i,
int
j,
int
,
auto
/*engine*/
)
21
{
22
h(i,j,0) = 50.0_rt;
23
});
24
25
}
// mfi
AMREX_ALWAYS_ASSERT
AMREX_ALWAYS_ASSERT(!NSPeriodic||!EWPeriodic)
NSPeriodic
bool NSPeriodic
Definition
REMORA_InitAnalyticProb_ChannelTest.H:8
EWPeriodic
bool EWPeriodic
Definition
REMORA_InitAnalyticProb_ChannelTest.H:7
Source
Prob
REMORA_InitAnalyticBathymetry_ChannelTest.H
Generated by
1.9.8