5 const Real dx_inv = cellSizeInv[0];
6 const Real dy_inv = cellSizeInv[1];
8 [[maybe_unused]]
const bool SurfLayer_xlo = use_SurfLayer && SurfLayer[amrex::Orientation::xlo()] !=
nullptr;
9 [[maybe_unused]]
const bool SurfLayer_ylo = use_SurfLayer && SurfLayer[amrex::Orientation::ylo()] !=
nullptr;
10 [[maybe_unused]]
const bool SurfLayer_zlo = use_SurfLayer && SurfLayer[amrex::Orientation::zlo()] !=
nullptr;
11 [[maybe_unused]]
const bool SurfLayer_xhi = use_SurfLayer && SurfLayer[amrex::Orientation::xhi()] !=
nullptr;
12 [[maybe_unused]]
const bool SurfLayer_yhi = use_SurfLayer && SurfLayer[amrex::Orientation::yhi()] !=
nullptr;
13 [[maybe_unused]]
const bool SurfLayer_zhi = use_SurfLayer && SurfLayer[amrex::Orientation::zhi()] !=
nullptr;
15 const Box xbx = surroundingNodes(bx,0);
16 const Box ybx = surroundingNodes(bx,1);
17 const Box zbx = surroundingNodes(bx,2);
19 [[maybe_unused]]
const int end_comp = start_comp + num_comp - 1;
20 [[maybe_unused]]
bool l_use_keqn = turbChoice.use_keqn;
21 [[maybe_unused]]
bool l_implicit_diss = turbChoice.use_keqn && turbChoice.implicit_tke_dissipation;
22 [[maybe_unused]]
bool l_use_mynn = turbChoice.use_pbl_tke;
30 [[maybe_unused]]
const bool use_ref_theta = (turbChoice.theta_ref > 0);
31 [[maybe_unused]]
const Real inv_theta_ref =
one / amrex::max(turbChoice.theta_ref, std::numeric_limits<Real>::min());
32 [[maybe_unused]]
const Real l_inv_theta0 = (use_ref_theta) ? inv_theta_ref :
one;
50 Gpu::AsyncVector<int> eddy_diff_idx_d;
51 Gpu::AsyncVector<int> eddy_diff_idy_d;
53 eddy_diff_idx_d.resize(eddy_diff_idx.size());
54 eddy_diff_idy_d.resize(eddy_diff_idy.size());
56 Gpu::copy(Gpu::hostToDevice, eddy_diff_idx.begin(), eddy_diff_idx.end(), eddy_diff_idx_d.begin());
57 Gpu::copy(Gpu::hostToDevice, eddy_diff_idy.begin(), eddy_diff_idy.end(), eddy_diff_idy_d.begin());
60 int* d_eddy_diff_idx = eddy_diff_idx_d.data();
61 int* d_eddy_diff_idy = eddy_diff_idy_d.data();
constexpr amrex::Real one
Definition: ERF_NumericalConstants.H:30
amrex::Real Real
Definition: ERF_ShocInterface.H:19
@ Q_h
Definition: ERF_IndexDefines.H:248
@ Scalar_h
Definition: ERF_IndexDefines.H:247
@ Theta_h
Definition: ERF_IndexDefines.H:245
@ KE_h
Definition: ERF_IndexDefines.H:246