Skip to content

Commit

Permalink
#597 Replace initial_values.emplace() with add_variable_value() (#604)
Browse files Browse the repository at this point in the history
  • Loading branch information
eidekrist authored Jun 29, 2020
1 parent 9eb1e1b commit 0349ef1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/cosim/osp_config_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -922,7 +922,9 @@ osp_config load_osp_config(
simulator.stepSize ? to_duration(*simulator.stepSize) : duration::zero());

for (const auto& p : simulator.initialValues) {
config.initial_values.emplace(
add_variable_value(
config.initial_values,
config.system_structure,
full_variable_name(simulator.name, p.name),
p.value);
}
Expand Down

0 comments on commit 0349ef1

Please sign in to comment.