REMORA
Regional Modeling of Oceans Refined Adaptively
Loading...
Searching...
No Matches
REMORA_InitAnalyticGridScale_BoundaryLayer.H
Go to the documentation of this file.
1
2
auto
geomdata
=
geom
.data();
3
const
int
Lm
=
geomdata
.Domain().size()[0];
4
const
auto
dxi
=
geom
.InvCellSize();
5
for
(
MFIter
mfi
(
mf_pm
,
TilingIfNotGPU
());
mfi
.isValid(); ++
mfi
)
6
{
7
Array4<Real>
const
&
pm
= (
mf_pm
).array(
mfi
);
8
9
Box
bx
=
mfi
.tilebox();
10
Box
gbx2
=
bx
;
11
gbx2
.grow(IntVect(
NGROW
+1,
NGROW
+1,0));
12
13
Box
gbx2D
=
gbx2
;
14
gbx2D
.makeSlab(2,0);
15
16
Gpu::streamSynchronize();
17
ParallelFor
(
gbx2D
, [=]
AMREX_GPU_DEVICE
(
int
i
,
int
j
,
int
)
18
{
19
Real
dx
= Real(0.5) * (Real(4000.0) / (
Lm
+ 1)) * (
i
+1) + Real(675.0);
20
pm
(
i
,
j
,0) =
one
/
dx
;
21
});
22
}
23
24
mf_pn
.setVal(
dxi
[1]);
one
constexpr amrex::Real one
Definition
REMORA_Constants.H:7
NGROW
#define NGROW
Definition
REMORA_IndexDefines.H:30
geomdata
auto geomdata
Definition
REMORA_InitAnalyticGridScale_BoundaryLayer.H:2
setVal
mf_pn setVal(dxi[1])
Lm
const int Lm
Definition
REMORA_InitAnalyticGridScale_BoundaryLayer.H:3
dxi
const auto dxi
Definition
REMORA_InitAnalyticGridScale_BoundaryLayer.H:4
dx
const auto dx
Definition
REMORA_InitAnalyticSMFlux_DoubleGyre.H:3
Source
Prob
REMORA_InitAnalyticGridScale_BoundaryLayer.H
Generated by
1.9.8