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]);
constexpr amrex::Real one
#define NGROW