Skip to content

Commit

Permalink
Change call to get response in layer code to use the built in simulat…
Browse files Browse the repository at this point in the history
…ion time object.

Conflicts:
	include/core/Layer.hpp
  • Loading branch information
donaldwj authored and mattw-nws committed Sep 19, 2023
1 parent ed85017 commit f57eb73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/core/Layer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<realization::Catchment_Formulation>(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);
Expand Down

0 comments on commit f57eb73

Please sign in to comment.