Skip to content

Commit

Permalink
Removed requirement for "path" in forcing config
Browse files Browse the repository at this point in the history
  • Loading branch information
mattw-nws committed Sep 21, 2023
1 parent ffb493d commit 63ccc9e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 1 addition & 2 deletions data/example_bmi_multi_realization_config_w_nfp.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,7 @@
}
],
"forcing": {
"provider": "NullForcingProvider",
"path": ""
"provider": "NullForcingProvider"
}
},
"time": {
Expand Down
5 changes: 4 additions & 1 deletion include/realizations/catchment/Formulation_Manager.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,10 @@ namespace realization {
}

forcing_params get_forcing_params(geojson::PropertyMap &forcing_prop_map, std::string identifier, simulation_time_params &simulation_time_config) {
std::string path = forcing_prop_map.at("path").as_string();
std::string path = "";
if(forcing_prop_map.count("path") != 0){
path = forcing_prop_map.at("path").as_string();
}
std::string provider = "";
if(forcing_prop_map.count("provider") != 0){
provider = forcing_prop_map.at("provider").as_string();
Expand Down

0 comments on commit 63ccc9e

Please sign in to comment.