REMORA
Regional Modeling of Oceans Refined Adaptively
Loading...
Searching...
No Matches
REMORA_InitAnalyticBathymetry_CoupleToERF.H
Go to the documentation of this file.
1
// This problem is run over a flat bottom at the base of the domain
2
mf_h
.setVal(
geomdata
.ProbHi(2));
3
4
// vec_h has two components, but vec_h_full_domain (used with hires_grid_level) has one
5
const
int
h_ncomp
=
mf_h
.nComp();
6
7
for
(
MFIter
mfi
(
mf_h
,
TilingIfNotGPU
());
mfi
.isValid(); ++
mfi
)
8
{
9
Array4<Real>
const
&
h
= (
mf_h
).array(
mfi
);
10
11
Gpu::streamSynchronize();
12
ParallelFor
(Box(
h
), [=]
AMREX_GPU_DEVICE
(
int
i
,
int
j
,
int
k
)
13
{
14
h
(
i
,
j
,0,0) = -
geomdata
.ProbLo(2);
15
if
(
k
==0 &&
h_ncomp
> 1) {
16
h
(
i
,
j
,0,1) =
h
(
i
,
j
,0,0);
17
}
18
});
19
}
// mfi
h_ncomp
const int h_ncomp
Definition
REMORA_InitAnalyticBathymetry_CoupleToERF.H:5
setVal
mf_h setVal(geomdata.ProbHi(2))
geomdata
auto geomdata
Definition
REMORA_InitAnalyticGridScale_BoundaryLayer.H:2
Source
Prob
REMORA_InitAnalyticBathymetry_CoupleToERF.H
Generated by
1.9.8