#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()
◆ 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_root()
std::string realization::Formulation_Manager::get_output_root |
( |
| ) |
const |
|
inline |
Get the formatted output root: check the existence of the output_root directory defined in realization.
If true, return the directory name. Otherwise, try to create the directory or throw an error on failure.
const auto manager = Formulation_Manger(CONFIG);
manager.get_output_root();
- Returns
- std::string of the output root directory
References tree.
Referenced by read().
◆ 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 |
◆ 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()
Call constructor to construct a Simulation_Time object
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::Config::formulation, realization::config::Layer::formulation, UnitsHelper::get_converted_value(), realization::config::Layer::get_descriptor(), realization::config::Layer::get_domain(), get_output_root(), global_config, realization::config::Config::has_formulation(), realization::config::Layer::has_formulation(), ngen::LayerDescription::id, layer_storage, realization::config::Formulation::link_external(), realization::config::Time::make_params(), ngen::LayerDescription::name, ngen::LayerDataStorage::put_layer(), routing_config, Simulation_Time_Object, ngen::LayerDescription::time_step, ngen::LayerDescription::time_step_units, 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
◆ routing_config
std::shared_ptr<routing_params> realization::Formulation_Manager::routing_config |
|
protected |
◆ Simulation_Time_Object
std::shared_ptr<Simulation_Time> realization::Formulation_Manager::Simulation_Time_Object |
◆ 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: