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

Functions

bool planar_sources_supported_for_terrain (TerrainType terrain_type, bool use_sst, bool use_tsk, bool use_coupled_sst, bool has_lsm_tsurf, bool has_lsm_fluxes)
 

Function Documentation

◆ planar_sources_supported_for_terrain()

bool erf_surface_layer::planar_sources_supported_for_terrain ( TerrainType  terrain_type,
bool  use_sst,
bool  use_tsk,
bool  use_coupled_sst,
bool  has_lsm_tsurf,
bool  has_lsm_fluxes 
)
inline
41 {
42  if (terrain_type != TerrainType::EB) { return true; }
43 
44  // EB supports this configuration only when all planar providers are absent.
45  return !use_sst && !use_tsk && !use_coupled_sst &&
46  !has_lsm_tsurf && !has_lsm_fluxes;
47 }

Referenced by SurfaceLayer::make_SurfaceLayer_at_level().

Here is the caller graph for this function: