From: Wolfgang Bangerth Date: Tue, 15 Mar 2005 17:15:54 +0000 (+0000) Subject: Move a few functions into an anonymous namespace that used to be static. Add a single... X-Git-Tag: v8.0.0~14380 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=52af6ecc4d2af4ca8b1f40f3fdadcd10872d6a1a;p=dealii.git Move a few functions into an anonymous namespace that used to be static. Add a single cast at a place where it may be necessary. git-svn-id: https://svn.dealii.org/trunk@10156 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/source/numerics/time_dependent.cc b/deal.II/deal.II/source/numerics/time_dependent.cc index f028c308b6..ba8b91c467 100644 --- a/deal.II/deal.II/source/numerics/time_dependent.cc +++ b/deal.II/deal.II/source/numerics/time_dependent.cc @@ -536,9 +536,12 @@ void TimeStepBase_Tria::restore_grid () -template -static void -mirror_refinement_flags (const typename Triangulation::cell_iterator &new_cell, +// have a few helper functions +namespace +{ + template + void + mirror_refinement_flags (const typename Triangulation::cell_iterator &new_cell, const typename Triangulation::cell_iterator &old_cell) { // mirror the refinement @@ -584,7 +587,7 @@ mirror_refinement_flags (const typename Triangulation::cell_iterator &new_c template -static bool +bool adapt_grid_cells (const typename Triangulation::cell_iterator &cell1, const typename Triangulation::cell_iterator &cell2) { @@ -689,7 +692,7 @@ adapt_grid_cells (const typename Triangulation::cell_iterator &cell1, template -static bool +bool adapt_grids (Triangulation &tria1, Triangulation &tria2) { @@ -706,7 +709,7 @@ adapt_grids (Triangulation &tria1, return grids_changed; } - +} template @@ -1162,7 +1165,7 @@ TimeStepBase_Tria_Flags::RefinementFlags::default_correction_relaxations std::vector >(1, // one element, denoting the upper bound // for the following // relaxation - std::make_pair (0, 0.))); + std::make_pair (0U, 0.))); template