]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix an member initialization PVS studio warning. 3395/head
authorDavid Wells <wellsd2@rpi.edu>
Thu, 3 Nov 2016 13:51:07 +0000 (09:51 -0400)
committerDavid Wells <wellsd2@rpi.edu>
Thu, 3 Nov 2016 13:55:49 +0000 (09:55 -0400)
The variable is now initialized with the same logic used in the
'restart' function.

source/algorithms/timestep_control.cc

index 7f261b6c38cb5f5d798dbf0f53eb0c6a5c8d649f..7fc831cbdd5f30ace31b0e58a8379a1c83fd5de9 100644 (file)
@@ -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");

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.