From 7c4c374f2375c3f675e53bb572d81db902d1dc61 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Fri, 4 Nov 2016 13:49:48 +0100 Subject: [PATCH] Make casts explicit, initialize all variables --- source/numerics/time_dependent.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source/numerics/time_dependent.cc b/source/numerics/time_dependent.cc index 005b5c862c..be8f358aa4 100644 --- a/source/numerics/time_dependent.cc +++ b/source/numerics/time_dependent.cc @@ -250,7 +250,8 @@ TimeStepBase::TimeStepBase (const double time) : next_timestep (0), sweep_no (numbers::invalid_unsigned_int), timestep_no (numbers::invalid_unsigned_int), - time (time) + time (time), + next_action(numbers::invalid_unsigned_int) {} @@ -863,7 +864,7 @@ void TimeStepBase_Tria::refine_grid (const RefinementData refinement_data) if (cell->refine_flag_set()) previous_cells += (GeometryInfo::max_children_per_cell-1); else if (cell->coarsen_flag_set()) - previous_cells -= (GeometryInfo::max_children_per_cell-1) / + previous_cells -= (double)(GeometryInfo::max_children_per_cell-1) / GeometryInfo::max_children_per_cell; // @p{previous_cells} now gives the @@ -889,7 +890,7 @@ void TimeStepBase_Tria::refine_grid (const RefinementData refinement_data) if (cell->refine_flag_set()) estimated_cells += (GeometryInfo::max_children_per_cell-1); else if (cell->coarsen_flag_set()) - estimated_cells -= (GeometryInfo::max_children_per_cell-1) / + estimated_cells -= (double)(GeometryInfo::max_children_per_cell-1) / GeometryInfo::max_children_per_cell; // calculate the allowed delta in -- 2.39.5