]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Move a few functions into an anonymous namespace that used to be static. Add a single...
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Tue, 15 Mar 2005 17:15:54 +0000 (17:15 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Tue, 15 Mar 2005 17:15:54 +0000 (17:15 +0000)
git-svn-id: https://svn.dealii.org/trunk@10156 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/numerics/time_dependent.cc

index f028c308b6c413e2acda7fcca354ff9c41682223..ba8b91c46702c6732348856f98c896f0062f54e8 100644 (file)
@@ -536,9 +536,12 @@ void TimeStepBase_Tria<dim>::restore_grid ()
 
 
 
-template <int dim>
-static void
-mirror_refinement_flags (const typename Triangulation<dim>::cell_iterator &new_cell,
+// have a few helper functions
+namespace 
+{
+  template <int dim>
+  void
+  mirror_refinement_flags (const typename Triangulation<dim>::cell_iterator &new_cell,
                         const typename Triangulation<dim>::cell_iterator &old_cell)
 {
                                   // mirror the refinement
@@ -584,7 +587,7 @@ mirror_refinement_flags (const typename Triangulation<dim>::cell_iterator &new_c
 
 
 template <int dim>
-static bool
+bool
 adapt_grid_cells (const typename Triangulation<dim>::cell_iterator &cell1,
                   const typename Triangulation<dim>::cell_iterator &cell2)
 {
@@ -689,7 +692,7 @@ adapt_grid_cells (const typename Triangulation<dim>::cell_iterator &cell1,
 
 
 template <int dim>
-static bool
+bool
 adapt_grids (Triangulation<dim> &tria1,
             Triangulation<dim> &tria2)
 {
@@ -706,7 +709,7 @@ adapt_grids (Triangulation<dim> &tria1,
 
   return grids_changed;
 }
-
+}
 
 
 template <int dim>
@@ -1162,7 +1165,7 @@ TimeStepBase_Tria_Flags::RefinementFlags<dim>::default_correction_relaxations
    std::vector<std::pair<unsigned int,double> >(1,    // one element, denoting the upper bound
                                                                                 // for the following
                                                                                 // relaxation
-                                               std::make_pair (0, 0.)));
+                                               std::make_pair (0U, 0.)));
 
 
 template <int dim>

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.