From 3b74010d84255f7676b4715a5b0699a6ee98cbe4 Mon Sep 17 00:00:00 2001 From: Laura Prieto Saavedra Date: Fri, 8 Nov 2024 16:13:20 -0500 Subject: [PATCH] Initialize parameters in constructor --- include/core/simulation_control.h | 4 ++-- source/core/simulation_control.cc | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/include/core/simulation_control.h b/include/core/simulation_control.h index 18744e6b88..aab5311ca8 100644 --- a/include/core/simulation_control.h +++ b/include/core/simulation_control.h @@ -502,11 +502,11 @@ class SimulationControlTransient : public SimulationControl std::vector 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 diff --git a/source/core/simulation_control.cc b/source/core/simulation_control.cc index 670407f922..eaec8ec0b6 100644 --- a/source/core/simulation_control.cc +++ b/source/core/simulation_control.cc @@ -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) {}