From: David Wells Date: Thu, 3 Nov 2016 13:51:07 +0000 (-0400) Subject: Fix an member initialization PVS studio warning. X-Git-Tag: v8.5.0-rc1~493^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3bd826241f1ddef354bf720ed7acaa271f2934e8;p=dealii.git Fix an member initialization PVS studio warning. The variable is now initialized with the same logic used in the 'restart' function. --- 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");