ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
erf_cloud_chamber_wall_dt_guard Namespace Reference

Functions

bool fixed_dt_exceeds_limit (double fixed_dt, double wall_dt) noexcept
 
void enforce_fixed_dt_limit (int level, double fixed_dt, double wall_dt, amrex::Real max_wall_rate)
 

Function Documentation

◆ enforce_fixed_dt_limit()

void erf_cloud_chamber_wall_dt_guard::enforce_fixed_dt_limit ( int  level,
double  fixed_dt,
double  wall_dt,
amrex::Real  max_wall_rate 
)
inline
21 {
22  if (!fixed_dt_exceeds_limit(fixed_dt, wall_dt)) { return; }
23 
24  amrex::Print() << "Cloud Chamber wall-transfer timestep violation at level "
25  << level
26  << ": fixed_dt=" << fixed_dt
27  << ", wall_dt=" << wall_dt
28  << ", max_wall_rate=" << max_wall_rate << std::endl;
29  amrex::Abort(
30  "Cloud Chamber wall-transfer timestep exceeds dt_wall = 0.5 / max_wall_rate");
31 }
bool fixed_dt_exceeds_limit(double fixed_dt, double wall_dt) noexcept
Definition: ERF_CloudChamberWallDtGuard.H:13

Referenced by ERF::estTimeStep().

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

◆ fixed_dt_exceeds_limit()

bool erf_cloud_chamber_wall_dt_guard::fixed_dt_exceeds_limit ( double  fixed_dt,
double  wall_dt 
)
inlinenoexcept
14 {
15  return fixed_dt > 0.0 && fixed_dt > wall_dt;
16 }

Referenced by enforce_fixed_dt_limit().

Here is the caller graph for this function: