ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
ERF_SetupVertDiff.H File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

Vector< Realalpha_eff (NPRIMVAR_max, 0.0)
 
 if (l_consA)
 
alpha_eff_d resize (alpha_eff.size())
 
eddy_diff_idz_d resize (eddy_diff_idz.size())
 

Variables

const auto & dom_lo = lbound(domain)
 
const auto & dom_hi = ubound(domain)
 
DiffChoice diffChoice = solverChoice.diffChoice
 
TurbChoice turbChoice = solverChoice.turbChoice[level]
 
bool l_consA = (diffChoice.molec_diff_type == MolecDiffType::ConstantAlpha)
 
bool l_turb = turbChoice.use_kturb
 
 else
 
Gpu::AsyncVector< Realalpha_eff_d
 
Gpu::AsyncVector< int > eddy_diff_idz_d
 
Reald_alpha_eff = alpha_eff_d.data()
 
int * d_eddy_diff_idz = eddy_diff_idz_d.data()
 

Function Documentation

◆ alpha_eff()

Vector<Real> alpha_eff ( NPRIMVAR_max  ,
0.  0 
)

Referenced by if().

Here is the caller graph for this function:

◆ if()

if ( l_consA  )
12  {
13  for (int i = 0; i < NPRIMVAR_max; ++i) {
14  switch (i) {
15  case PrimTheta_comp:
17  break;
18  case PrimScalar_comp:
20  break;
21  case PrimQ1_comp:
23  break;
24  case PrimQ2_comp:
26  break;
27  case PrimQ3_comp:
29  break;
30  case PrimQ4_comp:
32  break;
33  case PrimQ5_comp:
35  break;
36  case PrimQ6_comp:
38  break;
39  default:
40  alpha_eff[i] = 0.0;
41  break;
42  }
43  }
44  } else {
#define PrimQ1_comp
Definition: ERF_IndexDefines.H:53
#define NPRIMVAR_max
Definition: ERF_IndexDefines.H:33
#define PrimQ2_comp
Definition: ERF_IndexDefines.H:54
#define PrimQ4_comp
Definition: ERF_IndexDefines.H:56
#define PrimQ6_comp
Definition: ERF_IndexDefines.H:58
#define PrimQ5_comp
Definition: ERF_IndexDefines.H:57
#define PrimTheta_comp
Definition: ERF_IndexDefines.H:50
#define PrimScalar_comp
Definition: ERF_IndexDefines.H:52
#define PrimQ3_comp
Definition: ERF_IndexDefines.H:55
Vector< Real > alpha_eff(NPRIMVAR_max, 0.0)
DiffChoice diffChoice
Definition: ERF_SetupVertDiff.H:4
amrex::Real alpha_T
Definition: ERF_DiffStruct.H:87
amrex::Real alpha_C
Definition: ERF_DiffStruct.H:88
Here is the call graph for this function:

◆ resize() [1/2]

alpha_eff_d resize ( alpha_eff.  size())

◆ resize() [2/2]

eddy_diff_idz_d resize ( eddy_diff_idz.  size())

Variable Documentation

◆ alpha_eff_d

Gpu::AsyncVector<Real> alpha_eff_d

◆ d_alpha_eff

◆ d_eddy_diff_idz

◆ diffChoice

DiffChoice diffChoice = solverChoice.diffChoice

Referenced by if().

◆ dom_hi

◆ dom_lo

◆ eddy_diff_idz_d

Gpu::AsyncVector<int> eddy_diff_idz_d

◆ else

else

◆ l_consA

◆ l_turb

◆ turbChoice