#include <Formulation_Manager.hpp>
◆ Formulation_Manager() [1/3]
| realization::Formulation_Manager::Formulation_Manager |
( |
std::stringstream & | data | ) |
|
|
inline |
◆ Formulation_Manager() [2/3]
| realization::Formulation_Manager::Formulation_Manager |
( |
const std::string & | file_path | ) |
|
|
inline |
◆ Formulation_Manager() [3/3]
| realization::Formulation_Manager::Formulation_Manager |
( |
boost::property_tree::ptree & | loaded_tree | ) |
|
|
inline |
◆ ~Formulation_Manager()
| realization::Formulation_Manager::~Formulation_Manager |
( |
| ) |
|
|
default |
◆ add_formulation()
| void realization::Formulation_Manager::add_formulation |
( |
std::shared_ptr< Catchment_Formulation > | formulation | ) |
|
|
inline |
◆ begin()
| std::map< std::string, std::shared_ptr< Catchment_Formulation > >::const_iterator realization::Formulation_Manager::begin |
( |
| ) |
const |
|
inline |
◆ construct_formulation_from_config()
References realization::Catchment_Formulation::config_pattern_substitution(), realization::construct_formulation(), realization::config::Config::forcing, realization::config::Config::formulation, realization::formulation_exists(), get_forcing_params(), realization::config::Forcing::has_key(), realization::config::Forcing::parameters, realization::config::Formulation::parameters, realization::config::Formulation::type, and realization::valid_formulation_keys().
Referenced by read().
◆ construct_missing_formulation()
◆ contains()
| bool realization::Formulation_Manager::contains |
( |
std::string | identifier | ) |
const |
|
inline |
◆ end()
| std::map< std::string, std::shared_ptr< Catchment_Formulation > >::const_iterator realization::Formulation_Manager::end |
( |
| ) |
const |
|
inline |
◆ finalize()
| void realization::Formulation_Manager::finalize |
( |
| ) |
|
|
inline |
Release any resources that should not be held as the run is shutting down.
In particular, this should be called before MPI_Finalize()
References domain_formulations, and formulations.
◆ get_domain_formulation()
| std::shared_ptr< Catchment_Formulation > realization::Formulation_Manager::get_domain_formulation |
( |
long | id | ) |
const |
|
inline |
◆ get_forcing_params()
◆ get_formulation()
| std::shared_ptr< Catchment_Formulation > realization::Formulation_Manager::get_formulation |
( |
std::string | id | ) |
const |
|
inline |
◆ get_layer_metadata()
return the layer storage used for formulations
- Returns
- a reference to the LayerStorageObject
References layer_storage.
◆ get_output_config()
◆ get_size()
| int realization::Formulation_Manager::get_size |
( |
| ) |
|
|
inline |
- Returns
- The number of elements within the collection
References formulations.
◆ get_t_route_config_file_with_path()
| std::string realization::Formulation_Manager::get_t_route_config_file_with_path |
( |
| ) |
|
|
inline |
◆ get_using_routing()
| bool realization::Formulation_Manager::get_using_routing |
( |
| ) |
|
|
inline |
◆ has_domain_formulation()
| bool realization::Formulation_Manager::has_domain_formulation |
( |
int | id | ) |
const |
|
inline |
◆ initialize_output_config()
| void realization::Formulation_Manager::initialize_output_config |
( |
| ) |
|
|
inline |
Parse the output configuration from the realization tree (preferring the "output" block, falling back to the deprecated top-level keys), warn on deprecated usage, and validate build support.
Called once at construction so output accessors are valid before read().
References realization::config::OutputDomain::format, realization::config::Output::from_legacy_keys, realization::config::Output::from_realization(), realization::config::netcdf, realization::config::Output::nexus, output_config, and tree.
Referenced by Formulation_Manager(), Formulation_Manager(), and Formulation_Manager().
◆ is_empty()
| bool realization::Formulation_Manager::is_empty |
( |
| ) |
|
|
inline |
- Returns
- Whether or not the collection is empty
References formulations.
◆ parse_external_model_params() [1/2]
| void realization::Formulation_Manager::parse_external_model_params |
( |
boost::property_tree::ptree & | model_params, |
|
|
const geojson::Feature | catchment_feature ) |
|
inlineprotected |
◆ parse_external_model_params() [2/2]
◆ read()
Read the layer descriptions
Read routing configurations from configuration file
Read catchment configurations from configuration file
References add_formulation(), construct_formulation_from_config(), construct_missing_formulation(), contains(), domain_formulations, realization::config::OutputDomain::format, realization::config::Config::formulation, realization::config::Layer::formulation, realization::config::Layer::get_descriptor(), realization::config::Layer::get_domain(), global_config, realization::config::Config::has_formulation(), realization::config::Layer::has_formulation(), ngen::LayerDescription::id, layer_storage, realization::config::Formulation::link_external(), realization::config::netcdf, realization::config::Output::nexus, output_config, ngen::LayerDataStorage::put_layer(), routing_config, tree, and using_routing.
◆ domain_formulations
| std::map<int, std::shared_ptr<Catchment_Formulation> > realization::Formulation_Manager::domain_formulations |
|
protected |
◆ formulations
| std::map<std::string, std::shared_ptr<Catchment_Formulation> > realization::Formulation_Manager::formulations |
|
protected |
◆ global_config
◆ layer_storage
◆ output_config
◆ routing_config
| std::shared_ptr<routing_params> realization::Formulation_Manager::routing_config |
|
protected |
◆ tree
| boost::property_tree::ptree realization::Formulation_Manager::tree |
|
protected |
◆ using_routing
| bool realization::Formulation_Manager::using_routing = false |
|
protected |
The documentation for this class was generated from the following file: