REMORA
Regional Modeling of Oceans Refined Adaptively
Loading...
Searching...
No Matches
REMORA_InitAnalyticBathymetry_DogboneAnalytic.H
Go to the documentation of this file.
1 ParmParse pp_prob("remora.prob");
2
3 bool traditional = true;
4 pp_prob.query("traditional", traditional);
5
7 mf_h.setVal(10.0_rt);
8 } else {
9 mf_h.setVal(0.0_rt);
10 for (MFIter mfi(mf_h, TilingIfNotGPU()); mfi.isValid(); ++mfi)
11 {
12 const Box &bx = mfi.growntilebox(IntVect(NGROW,NGROW,0));
13
14 Array4< Real> const& h = mf_h.array(mfi);
15 Array4<const Real> const& x_r = remora.vec_xr[lev]->const_array(mfi);
16 Array4<const Real> const& y_r = remora.vec_yr[lev]->const_array(mfi);
17
18 ParallelFor(bx, [=] AMREX_GPU_DEVICE(int i, int j, int ) noexcept
19 {
20 h(i,j,0) = 10.0_rt + (x_r(i,j,0) - 4200._rt) * (x_r(i,j,0) - 4200._rt) * 5.0_rt / (4200.0_rt * 4200.0_rt) -
21 (y_r(i,j,0) - 375._rt) * (y_r(i,j,0) - 375._rt) * 5.0_rt / (375._rt * 375._rt);
22 });
23 }
24 }
#define NGROW
ParmParse pp_prob("remora.prob")