REMORA
Regional Modeling of Oceans Refined Adaptively
Loading...
Searching...
No Matches
REMORA_InitAnalyticVMix_ParticleAdvectionFlat.H
Go to the documentation of this file.
1
for
(
MFIter
mfi
((
mf_Akv
),
TilingIfNotGPU
());
mfi
.isValid(); ++
mfi
)
2
{
3
Array4<Real>
const
&
Akv
= (
mf_Akv
).array(
mfi
);
4
Array4<Real>
const
&
Akt
= (
mf_Akt
).array(
mfi
);
5
Array4<const Real>
const
& z_w =
remora
.vec_z_w[
lev
]->const_array(
mfi
);
6
Box
bx
=
mfi
.tilebox();
7
bx
.grow(IntVect(
NGROW
,
NGROW
,0));
8
9
ParallelFor
(
bx
, [=]
AMREX_GPU_DEVICE
(
int
i
,
int
j
,
int
k
)
10
{
11
Akv
(
i
,
j
,
k
) = Real(2.0e-03)+Real(8.0e-03)*std::exp(z_w(
i
,
j
,
k
)/Real(150.0));
12
13
Akt
(
i
,
j
,
k
,
Temp_comp
) = Real(1.0e-6);
14
Akt
(
i
,
j
,
k
,
Salt_comp
) = Real(1.0e-6);
15
});
16
}
NGROW
#define NGROW
Definition
REMORA_IndexDefines.H:30
Temp_comp
#define Temp_comp
Definition
REMORA_IndexDefines.H:10
Salt_comp
#define Salt_comp
Definition
REMORA_IndexDefines.H:11
setVal
mf_h setVal(geomdata.ProbHi(2))
Source
Prob
REMORA_InitAnalyticVMix_ParticleAdvectionFlat.H
Generated by
1.9.8