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) > Real(2800.0) && x_r(i,j,0) < Real(5600.0)) &&
13 (y_r(i,j,0) < Real(250.0) || y_r(i,j,0) > Real(500.0))) {
14 mskr(i,j,0) = zero;
15 }
16 });
17 }
constexpr amrex::Real zero
#define NGROW