8 auto dx = geom.CellSizeArray();
15 for (MFIter mfi(*src, TilingIfNotGPU()); mfi.isValid(); ++mfi)
17 const auto &box = mfi.tilebox();
18 const Array4<Real>& src_arr = src->array(mfi);
19 if (box.length(0) != 1)
22 ParallelFor( box, [=] AMREX_GPU_DEVICE (
int i,
int j,
int k) noexcept
39 ParallelFor(box, [=] AMREX_GPU_DEVICE (
int i,
int j,
int k) {
constexpr amrex::Real myhalf
Definition: ERF_Constants.H:11
ParallelFor(bx, [=] AMREX_GPU_DEVICE(int i, int j, int k) noexcept { const Real *dx=geomdata.CellSize();const Real x=(i+0.5) *dx[0];const Real y=(j+0.5) *dx[1];const Real Omg=erf_vortex_Gaussian(x, y, xc, yc, R, beta, sigma);const Real deltaT=-(gamma - 1.0)/(2.0 *sigma *sigma) *Omg *Omg;const Real rho_norm=std::pow(1.0+deltaT, inv_gm1);const Real T=(1.0+deltaT) *T_inf;const Real p=std::pow(rho_norm, Gamma)/Gamma *rho_0 *a_inf *a_inf;const Real rho_theta=rho_0 *rho_norm *(T *std::pow(p_0/p, rdOcp));state_pert(i, j, k, RhoTheta_comp)=rho_theta - getRhoThetagivenP(p_hse(i, j, k));const Real r2d_xy=std::sqrt((x-xc) *(x-xc)+(y-yc) *(y-yc));state_pert(i, j, k, RhoScalar_comp)=0.25 *(1.0+std::cos(PI *std::min(r2d_xy, R)/R));})
amrex::Real Real
Definition: ERF_ShocInterface.H:19
auto prob_lo
Definition: ERF_UpdateRhoThetaSources_SDMCongestus3D.H:6
Real advection_heating_rate
Definition: ERF_UpdateRhoThetaSources_SDMCongestus3D.H:3
const Real yc
Definition: ERF_UpdateRhoThetaSources_SDMCongestus3D.H:12
ParmParse pp_prob("prob")
Real advection_heating_rate_base
Definition: ERF_UpdateRhoThetaSources_SDMCongestus3D.H:4
auto prob_hi
Definition: ERF_UpdateRhoThetaSources_SDMCongestus3D.H:7
const Real xc
Definition: ERF_UpdateRhoThetaSources_SDMCongestus3D.H:11
auto dx
Definition: ERF_UpdateRhoThetaSources_SDMCongestus3D.H:8