Skip to content

Commit

Permalink
run-single: Call setup() after initialising vars (#111)
Browse files Browse the repository at this point in the history
Fixes #110.
  • Loading branch information
kyllingstad authored Mar 4, 2024
1 parent 71b7bf3 commit 5dd7c93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/run_single.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,6 @@ int run_single_subcommand::run(const boost::program_options::variables_map& args
}

const auto simulator = model->instantiate("simulator");
simulator->setup(runOptions.begin_time, runOptions.end_time, {});
if (initialValues) {
simulator
->set_variables(
Expand All @@ -286,6 +285,7 @@ int run_single_subcommand::run(const boost::program_options::variables_map& args
gsl::make_span(initialValues->stringVariables),
gsl::make_span(initialValues->stringValues));
}
simulator->setup(runOptions.begin_time, runOptions.end_time, {});

auto output = csv_output_writer(
simulator,
Expand Down

0 comments on commit 5dd7c93

Please sign in to comment.