From 185fc8840a7d39e430ce480b144ff75a46a55df3 Mon Sep 17 00:00:00 2001 From: David Wells Date: Fri, 4 Nov 2016 07:22:56 -0400 Subject: [PATCH] Add some missing initializations to Timer. Some of these were caught by PVS studio. --- source/base/timer.cc | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/source/base/timer.cc b/source/base/timer.cc index 331144ce61..a9f0f7e401 100644 --- a/source/base/timer.cc +++ b/source/base/timer.cc @@ -41,8 +41,13 @@ DEAL_II_NAMESPACE_OPEN // current process Timer::Timer() : + start_time (0.), + start_time_children (0.), + start_wall_time (0.), cumulative_time (0.), - cumulative_wall_time (0.) + cumulative_wall_time (0.), + last_lap_time (0.), + running (false) #ifdef DEAL_II_WITH_MPI , mpi_communicator (MPI_COMM_SELF) , sync_wall_time (false) @@ -59,8 +64,13 @@ Timer::Timer() Timer::Timer(MPI_Comm mpi_communicator, bool sync_wall_time_) : + start_time (0.), + start_time_children (0.), + start_wall_time (0.), cumulative_time (0.), cumulative_wall_time (0.), + last_lap_time (0.), + running (false), mpi_communicator (mpi_communicator), sync_wall_time(sync_wall_time_) { -- 2.39.5