REMORA
Regional Modeling of Oceans Refined Adaptively
Loading...
Searching...
No Matches
REMORA_InitAnalyticMasks_DogboneAnalytic.H
Go to the documentation of this file.
1 for (MFIter mfi(mf_mskr, TilingIfNotGPU()); mfi.isValid(); ++mfi)
2 {
3 const Box &bx = mfi.growntilebox(IntVect(NGROW,NGROW,0));
4
5 Array4< Real> const& mskr = mf_mskr.array(mfi);
6 Array4<const Real> const& x_r = remora.vec_xr[lev]->const_array(mfi);
7 Array4<const Real> const& y_r = remora.vec_yr[lev]->const_array(mfi);
8
9 // mskr is 1 everywhere already
10 ParallelFor(bx, [=] AMREX_GPU_DEVICE(int i, int j, int ) noexcept
11 {
12 if ((x_r(i,j,0) > 2800.0_rt && x_r(i,j,0) < 5600.0_rt) &&
13 (y_r(i,j,0) < 250.0_rt || y_r(i,j,0) > 500.0_rt)) {
14 mskr(i,j,0) = 0.0_rt;
15 }
16 });
17 }
#define NGROW