From f57eb73dc4297163bac470e2214733438e4fc1be Mon Sep 17 00:00:00 2001 From: Donald Johnson Date: Mon, 28 Aug 2023 14:15:07 +0000 Subject: [PATCH] Change call to get response in layer code to use the built in simulation time object. Conflicts: include/core/Layer.hpp --- include/core/Layer.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/core/Layer.hpp b/include/core/Layer.hpp index 1a479906e2..08d992bfd6 100644 --- a/include/core/Layer.hpp +++ b/include/core/Layer.hpp @@ -92,7 +92,7 @@ namespace ngen auto r = features.catchment_at(id); //TODO redesign to avoid this cast auto r_c = std::dynamic_pointer_cast(r); - double response = r_c->get_response(output_time_index, description.time_step); + double response = r_c->get_response(output_time_index, simulation_time.get_output_interval_seconds()); std::string output = std::to_string(output_time_index)+","+current_timestamp+","+ r_c->get_output_line_for_timestep(output_time_index)+"\n"; r_c->write_output(output);