Skip to content

Commit

Permalink
Initialize parameters in constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
lpsaavedra committed Nov 8, 2024
1 parent 6c28487 commit 3b74010
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/core/simulation_control.h
Original file line number Diff line number Diff line change
Expand Up @@ -502,11 +502,11 @@ class SimulationControlTransient : public SimulationControl
std::vector<double> output_times_vector;

// Counter to move between output times given in previous vector
unsigned int output_times_counter = 0;
unsigned int output_times_counter;

// Variable to check whether we still have specific times to check in output
// times vector
bool no_more_output_times = false;
bool no_more_output_times;

// Time interval for output of transient iterations either with time output
// control or iterations control
Expand Down
2 changes: 2 additions & 0 deletions source/core/simulation_control.cc
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,8 @@ SimulationControlTransient::SimulationControlTransient(
, max_dt(param.max_dt)
, output_time_frequency(param.output_time_frequency)
, output_times_vector(param.output_times_vector)
, output_times_counter(0)
, no_more_output_times(false)
, output_time_interval(param.output_time_interval)
, output_control(param.output_control)
{}
Expand Down

0 comments on commit 3b74010

Please sign in to comment.