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

Go to the source code of this file.

Functions

bool noahmp_level_runs_driver (int lev, bool has_init_file, bool idealized_init, bool namelist_names_setup) noexcept
 Whether Noah-MP at AMR level lev runs the land model on a setup file of its own. More...
 

Function Documentation

◆ noahmp_level_runs_driver()

bool noahmp_level_runs_driver ( int  lev,
bool  has_init_file,
bool  idealized_init,
bool  namelist_names_setup 
)
inlinenoexcept

Whether Noah-MP at AMR level lev runs the land model on a setup file of its own.

Level 0 always does. A finer level does if it has a land setup file of its own; it otherwise takes its land state from level 0 (NOAHMP::interp_from_lev0). Which file counts:

  • a run initialized from WRF or metgrid files: erf.nc_init_file_<lev>, which also supplies the level's atmosphere. ERF_SETUP_FILE_0<lev+1> in namelist.erf alone does not, so such runs behave as they always have;
  • any other run (input_sounding, a custom problem), which has no such file: ERF_SETUP_FILE_0<lev+1> in namelist.erf.
Parameters
levAMR level
has_init_fileerf.nc_init_file_<lev> is given
idealized_initthe run is not initialized from WRF or metgrid files
namelist_names_setupnamelist.erf names ERF_SETUP_FILE_0<lev+1>
24 {
25  if (lev == 0 || has_init_file) { return true; }
26  return idealized_init && namelist_names_setup;
27 }

Referenced by NOAHMP::Init().

Here is the caller graph for this function: