ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
ERF_SetupScalarDiffusion.H
Go to the documentation of this file.
1 /** \cond */
2 // Host-side state shared by the regular-grid scalar diffusion adapters. The
3 // explicit numerical path deliberately does not allocate positional
4 // coefficient maps; each native state is resolved to a small policy in the
5 // adapter immediately before its kernels are launched.
6 DiffChoice diffChoice = solverChoice.diffChoice;
7 TurbChoice turbChoice = solverChoice.turbChoice[level];
8 const bool l_consA = diffChoice.molec_diff_type == MolecDiffType::ConstantAlpha;
9 const bool l_turb = turbChoice.use_kturb;
10 
11 [[maybe_unused]] const bool SurfLayer_xlo =
12  use_SurfLayer && SurfLayer[amrex::Orientation::xlo()] != nullptr;
13 [[maybe_unused]] const bool SurfLayer_ylo =
14  use_SurfLayer && SurfLayer[amrex::Orientation::ylo()] != nullptr;
15 [[maybe_unused]] const bool SurfLayer_zlo =
16  use_SurfLayer && SurfLayer[amrex::Orientation::zlo()] != nullptr;
17 [[maybe_unused]] const bool SurfLayer_xhi =
18  use_SurfLayer && SurfLayer[amrex::Orientation::xhi()] != nullptr;
19 [[maybe_unused]] const bool SurfLayer_yhi =
20  use_SurfLayer && SurfLayer[amrex::Orientation::yhi()] != nullptr;
21 [[maybe_unused]] const bool SurfLayer_zhi =
22  use_SurfLayer && SurfLayer[amrex::Orientation::zhi()] != nullptr;
23 const Box zbx = surroundingNodes(bx, 2);
24 /** \endcond */
Definition: ERF_DiffStruct.H:22
MolecDiffType molec_diff_type
Selected molecular transport model.
Definition: ERF_DiffStruct.H:94
Definition: ERF_TurbStruct.H:115
bool use_kturb
Whether any turbulence model is active.
Definition: ERF_TurbStruct.H:921