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

Go to the source code of this file.

Functions

bool VariableBetaSSwitchNeeded (amrex::Real beta_s, amrex::Real sigma2_max)
 

Function Documentation

◆ VariableBetaSSwitchNeeded()

bool VariableBetaSSwitchNeeded ( amrex::Real  beta_s,
amrex::Real  sigma2_max 
)
inline

Whether the constant beta_s is below the large-Courant stability limit min(sigma^2, 1) of the implicit acoustic substepping somewhere on a level whose largest terrain slope over the w-faces is sigma2_max = max(h_xi^2 + h_eta^2). ERF::CheckVariableBetaS then turns on erf.use_variable_beta_s (unless the inputs set it).

Parameters
[in]beta_sconstant beta_s (erf.beta_s)
[in]sigma2_maxlargest h_xi^2 + h_eta^2 over the w-faces of the level
18 {
19  return beta_s < amrex::min(sigma2_max, amrex::Real(1.0));
20 }

Referenced by ERF::CheckVariableBetaS().

Here is the caller graph for this function: