From: Daniel Arndt Date: Fri, 4 Nov 2016 12:49:48 +0000 (+0100) Subject: Make casts explicit, initialize all variables X-Git-Tag: v8.5.0-rc1~457^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c4c374f2375c3f675e53bb572d81db902d1dc61;p=dealii.git Make casts explicit, initialize all variables --- 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