Skip to content

Commit

Permalink
Add defualt layer creation to formulation manager
Browse files Browse the repository at this point in the history
  • Loading branch information
donaldwj committed May 5, 2023
1 parent 6cfc3ce commit 962a939
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions include/realizations/catchment/Formulation_Manager.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,17 @@ namespace realization {

// check to see if the node existed
if (!layers_json_array) {
// If there is no layers section create data for a default surface hydrology
// TODO
// layer description struct
ngen::LayerDescription layer_desc;

// extract and store layer data from the json
layer_desc.name = "surface layer";
layer_desc.id = 0;
layer_desc.time_step = 3600;
layer_desc.time_step_units = "S";

// add the layer to storage
layer_storage.put_layer(layer_desc, layer_desc.id);
}
else
{
Expand Down

0 comments on commit 962a939

Please sign in to comment.