ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
RRTMGPSolarChoice Struct Reference

#include <ERF_RadStruct.H>

Collaboration diagram for RRTMGPSolarChoice:

Public Member Functions

void read (const std::string &prefix)
 

Public Attributes

amrex::Real fixed_mu = -9999.0
 
amrex::Real latitude = 39.809860
 
amrex::Real longitude = -98.555183
 
int radiation_interval = 1
 

Detailed Description

Inputs shared by RRTMGP and the topographic surface correction.

Member Function Documentation

◆ read()

void RRTMGPSolarChoice::read ( const std::string &  prefix)
inline
80  {
81  amrex::ParmParse pp(prefix);
82  pp.queryAdd("fixed_solar_zenith_angle", fixed_mu);
83  pp.queryAdd("rad_cons_lat", latitude);
84  pp.queryAdd("rad_cons_lon", longitude);
85  pp.queryAdd("rad_freq_in_steps", radiation_interval);
86  if (!std::isfinite(latitude) || latitude < -90.0 || latitude > 90.0) {
87  amrex::Abort("erf.rad_cons_lat = " + std::to_string(latitude) +
88  " must lie in [-90, 90] degrees.");
89  }
90  if (!std::isfinite(longitude) || longitude < -180.0 || longitude > 180.0) {
91  amrex::Abort("erf.rad_cons_lon = " + std::to_string(longitude) +
92  " must lie in [-180, 180] degrees.");
93  }
94  if (fixed_mu > 1.0) {
95  amrex::Abort("erf.fixed_solar_zenith_angle = " + std::to_string(fixed_mu) +
96  " is the cosine of the solar zenith angle and cannot exceed 1; 60 degrees is 0.5.");
97  }
98  }
ParmParse pp("prob")
amrex::Real fixed_mu
Definition: ERF_RadStruct.H:74
amrex::Real latitude
Definition: ERF_RadStruct.H:75
amrex::Real longitude
Definition: ERF_RadStruct.H:76
int radiation_interval
Definition: ERF_RadStruct.H:77

Referenced by SolverChoice::init_params().

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

Member Data Documentation

◆ fixed_mu

amrex::Real RRTMGPSolarChoice::fixed_mu = -9999.0

◆ latitude

amrex::Real RRTMGPSolarChoice::latitude = 39.809860

◆ longitude

amrex::Real RRTMGPSolarChoice::longitude = -98.555183

◆ radiation_interval

int RRTMGPSolarChoice::radiation_interval = 1

The documentation for this struct was generated from the following file: