REMORA
Regional Modeling of Oceans Refined Adaptively
Loading...
Searching...
No Matches
REMORA_InitAnalyticZeta_DogboneAnalytic.H
Go to the documentation of this file.
1
mf_zeta
.setVal(
zero
);
2
3
// Off leaves the free surface flat, which a test needs if its exact solution is rest.
4
ParmParse
pp_zeta
(
"remora.prob"
);
5
bool
zeta_bump
=
true
;
6
pp_zeta
.query(
"zeta_bump"
,
zeta_bump
);
7
8
if
(
zeta_bump
) {
9
for
(
MFIter
mfi
(
mf_zeta
,
TilingIfNotGPU
());
mfi
.isValid(); ++
mfi
)
10
{
11
const
Box &
bx
=
mfi
.growntilebox(IntVect(1,1,0));
12
13
Array4< Real>
const
& zeta =
mf_zeta
.array(
mfi
);
14
Array4<const Real>
const
& x_r =
coords
.x_r->const_array(
mfi
);
15
16
ParallelFor
(
bx
,
mf_zeta
.nComp(), [=]
AMREX_GPU_DEVICE
(
int
i
,
int
j
,
int
,
int
n)
noexcept
17
{
18
if
(x_r(
i
,
j
,0) < Real(1100.0)) {
19
zeta(
i
,
j
,0,n) = Real(-0.00125) * (x_r(
i
,
j
,0) - Real(100.0)) + Real(1.25);
20
}
21
});
22
}
23
}
zero
constexpr amrex::Real zero
Definition
REMORA_Constants.H:6
pp_zeta
ParmParse pp_zeta("remora.prob")
zeta_bump
bool zeta_bump
Definition
REMORA_InitAnalyticZeta_DogboneAnalytic.H:5
setVal
mf_zeta setVal(zero)
Source
Prob
REMORA_InitAnalyticZeta_DogboneAnalytic.H
Generated by
1.9.8