From 3bd826241f1ddef354bf720ed7acaa271f2934e8 Mon Sep 17 00:00:00 2001
From: David Wells <wellsd2@rpi.edu>
Date: Thu, 3 Nov 2016 09:51:07 -0400
Subject: [PATCH] Fix an member initialization PVS studio warning.

The variable is now initialized with the same logic used in the
'restart' function.
---
 source/algorithms/timestep_control.cc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/source/algorithms/timestep_control.cc b/source/algorithms/timestep_control.cc
index 7f261b6c38..7fc831cbdd 100644
--- a/source/algorithms/timestep_control.cc
+++ b/source/algorithms/timestep_control.cc
@@ -36,7 +36,8 @@ TimestepControl::TimestepControl (double start,
     min_step_val(0),
     current_step_val(start_step),
     step_val(start_step),
-    print_step(print_step)
+    print_step(print_step),
+    next_print_val(print_step > 0. ? start_val + print_step : start_val - 1.)
 {
   now_val = start_val;
   strcpy(format, "T.%06.3f");
-- 
2.39.5