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(Real(10.0));
8 } else {
9 mf_h.setVal(zero);
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) = Real(10.0) + (x_r(i,j,0) - Real(4200.0)) * (x_r(i,j,0) - Real(4200.0)) * Real(5.0) / (Real(4200.0) * Real(4200.0)) -
21 (y_r(i,j,0) - Real(375.0)) * (y_r(i,j,0) - Real(375.0)) * Real(5.0) / (Real(375.0) * Real(375.0));
22 });
23 }
24 }
constexpr amrex::Real zero
#define NGROW
ParmParse pp_prob("remora.prob")