ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
ERF_TurbStruct.H File Reference
#include <ERF_MYNNStruct.H>
Include dependency graph for ERF_TurbStruct.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  TurbChoice
 

Functions

 AMREX_ENUM (LESType, None, Smagorinsky, Deardorff)
 
 AMREX_ENUM (RANSType, None, kEqn)
 
 AMREX_ENUM (PBLType, None, MYNN25, YSU)
 
template<typename T >
void query_one_or_per_level (const amrex::ParmParse &pp, const char *query_string, T &query_var, const int lev, const int maxlev)
 

Function Documentation

◆ AMREX_ENUM() [1/3]

AMREX_ENUM ( LESType  ,
None  ,
Smagorinsky  ,
Deardorff   
)

◆ AMREX_ENUM() [2/3]

AMREX_ENUM ( PBLType  ,
None  ,
MYNN25  ,
YSU   
)

◆ AMREX_ENUM() [3/3]

AMREX_ENUM ( RANSType  ,
None  ,
kEqn   
)

◆ query_one_or_per_level()

template<typename T >
void query_one_or_per_level ( const amrex::ParmParse &  pp,
const char *  query_string,
T &  query_var,
const int  lev,
const int  maxlev 
)
14 {
15  int count = pp.countval(query_string);
16  if (count == 0) {
17  return; // nothing to do
18  } else if (count == 1) {
19  pp.query(query_string, query_var);
20  } else if (count == maxlev + 1) {
21  pp.query(query_string, query_var, lev);
22  } else {
23  amrex::Error("For parmparse variable " + pp.prefixedName(query_string)
24  + ": if specified, specify once total or once for each level");
25  }
26 }
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real pp(amrex::Real y)
Definition: ERF_MicrophysicsUtils.H:219

Referenced by TurbChoice::init_params().

Here is the call graph for this function:
Here is the caller graph for this function: