]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Work around more stupid problems with gcc3.3.1.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 12 Jun 2009 08:51:44 +0000 (08:51 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 12 Jun 2009 08:51:44 +0000 (08:51 +0000)
git-svn-id: https://svn.dealii.org/branches/releases/Branch-6-2@18932 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/grid/grid_refinement.cc

index ba33ff56a196d6183fcbbb792827f3791fb84791..c96a80f0346103e4357309675b1651b5ffbad8f3 100644 (file)
@@ -503,28 +503,32 @@ GridRefinement::refine_and_coarsen_optimize (Triangulation<dim,spacedim> &tria,
 template
 void
 GridRefinement::
-refine (Triangulation<deal_II_dimension> &,
+refine<deal_II_dimension,Vector<float>,deal_II_dimension>
+       (Triangulation<deal_II_dimension> &,
         const Vector<float> &,
         const double);
 
 template
 void
 GridRefinement::
-refine (Triangulation<deal_II_dimension> &,
+refine<deal_II_dimension,Vector<double>,deal_II_dimension>
+       (Triangulation<deal_II_dimension> &,
         const Vector<double> &,
         const double);
 
 template
 void
 GridRefinement::
-coarsen (Triangulation<deal_II_dimension> &,
+coarsen<deal_II_dimension,Vector<float>,deal_II_dimension>
+       (Triangulation<deal_II_dimension> &,
          const Vector<float> &,
          const double);
 
 template
 void
 GridRefinement::
-coarsen (Triangulation<deal_II_dimension> &,
+coarsen<deal_II_dimension,Vector<double>,deal_II_dimension>
+       (Triangulation<deal_II_dimension> &,
          const Vector<double> &,
          const double);
 
@@ -532,93 +536,149 @@ coarsen (Triangulation<deal_II_dimension> &,
 template
 void
 GridRefinement::
-refine_and_coarsen_fixed_number (Triangulation<deal_II_dimension> &,
-                                 const Vector<double> &,
-                                 const double,
-                                 const double,
-                                const unsigned int);
+refine_and_coarsen_fixed_number<deal_II_dimension,Vector<double>,deal_II_dimension>
+(Triangulation<deal_II_dimension> &,
+ const Vector<double> &,
+ const double,
+ const double,
+ const unsigned int);
 
 template
 void
 GridRefinement::
-refine_and_coarsen_fixed_number (Triangulation<deal_II_dimension> &,
-                                 const Vector<float> &,
-                                 const double,
-                                 const double,
-                                const unsigned int);
+refine_and_coarsen_fixed_number<deal_II_dimension,Vector<float>,deal_II_dimension>
+ (Triangulation<deal_II_dimension> &,
+  const Vector<float> &,
+  const double,
+  const double,
+  const unsigned int);
 
 template
 void
 GridRefinement::
-refine_and_coarsen_fixed_fraction (Triangulation<deal_II_dimension> &,
-                                   const Vector<double> &,
-                                   const double,
-                                   const double,
-                                  const unsigned int);
+refine_and_coarsen_fixed_fraction<deal_II_dimension,Vector<double>,deal_II_dimension>
+ (Triangulation<deal_II_dimension> &,
+  const Vector<double> &,
+  const double,
+  const double,
+  const unsigned int);
 
 template
 void
 GridRefinement::
-refine_and_coarsen_fixed_fraction (Triangulation<deal_II_dimension> &,
-                                   const Vector<float> &,
-                                   const double,
-                                   const double,
-                                  const unsigned int);
+refine_and_coarsen_fixed_fraction<deal_II_dimension,Vector<float>,deal_II_dimension>
+ (Triangulation<deal_II_dimension> &,
+  const Vector<float> &,
+  const double,
+  const double,
+  const unsigned int);
 
 template
 void
 GridRefinement::
-refine_and_coarsen_optimize (Triangulation<deal_II_dimension> &,
-                             const Vector<float> &);
+refine_and_coarsen_optimize<deal_II_dimension,Vector<float>,deal_II_dimension>
+(Triangulation<deal_II_dimension> &,
+ const Vector<float> &);
 
 template
 void
 GridRefinement::
-refine_and_coarsen_optimize (Triangulation<deal_II_dimension> &,
-                             const Vector<double> &);
+refine_and_coarsen_optimize<deal_II_dimension,Vector<double>,deal_II_dimension>
+(Triangulation<deal_II_dimension> &,
+ const Vector<double> &);
 
 #ifdef DEAL_II_USE_PETSC
 template
 void
 GridRefinement::
-refine (Triangulation<deal_II_dimension> &,
-        const PETScWrappers::Vector &,
-        const double);
+refine<deal_II_dimension,PETScWrappers::Vector,deal_II_dimension>
+ (Triangulation<deal_II_dimension> &,
+  const PETScWrappers::Vector &,
+  const double);
 
 template
 void
 GridRefinement::
-coarsen (Triangulation<deal_II_dimension> &,
-         const PETScWrappers::Vector &,
-         const double);
+coarsen<deal_II_dimension,PETScWrappers::Vector,deal_II_dimension>
+(Triangulation<deal_II_dimension> &,
+ const PETScWrappers::Vector &,
+ const double);
 
 
 template
 void
 GridRefinement::
-refine_and_coarsen_fixed_number (Triangulation<deal_II_dimension> &,
-                                 const PETScWrappers::Vector &,
-                                 const double,
-                                 const double,
-                                const unsigned int);
+refine_and_coarsen_fixed_number<deal_II_dimension,PETScWrappers::Vector,deal_II_dimension>
+(Triangulation<deal_II_dimension> &,
+ const PETScWrappers::Vector &,
+ const double,
+ const double,
+ const unsigned int);
 
 template
 void
 GridRefinement::
-refine_and_coarsen_fixed_fraction (Triangulation<deal_II_dimension> &,
-                                   const PETScWrappers::Vector &,
-                                   const double,
-                                   const double,
-                                  const unsigned int);
+refine_and_coarsen_fixed_fraction<deal_II_dimension,PETScWrappers::Vector,deal_II_dimension>
+(Triangulation<deal_II_dimension> &,
+ const PETScWrappers::Vector &,
+ const double,
+ const double,
+ const unsigned int);
 
 template
 void
 GridRefinement::
-refine_and_coarsen_optimize (Triangulation<deal_II_dimension> &,
-                             const PETScWrappers::Vector &);
+refine_and_coarsen_optimize<deal_II_dimension,PETScWrappers::Vector,deal_II_dimension>
+(Triangulation<deal_II_dimension> &,
+ const PETScWrappers::Vector &);
+#endif
+
+#ifdef DEAL_II_USE_TRILINOS
+template
+void
+GridRefinement::
+refine<deal_II_dimension,TrilinosWrappers::Vector,deal_II_dimension>
+ (Triangulation<deal_II_dimension> &,
+  const TrilinosWrappers::Vector &,
+  const double);
+
+template
+void
+GridRefinement::
+coarsen<deal_II_dimension,TrilinosWrappers::Vector,deal_II_dimension>
+(Triangulation<deal_II_dimension> &,
+ const TrilinosWrappers::Vector &,
+ const double);
+
+
+template
+void
+GridRefinement::
+refine_and_coarsen_fixed_number<deal_II_dimension,TrilinosWrappers::Vector,deal_II_dimension>
+(Triangulation<deal_II_dimension> &,
+ const TrilinosWrappers::Vector &,
+ const double,
+ const double,
+ const unsigned int);
+
+template
+void
+GridRefinement::
+refine_and_coarsen_fixed_fraction<deal_II_dimension,TrilinosWrappers::Vector,deal_II_dimension>
+(Triangulation<deal_II_dimension> &,
+ const TrilinosWrappers::Vector &,
+ const double,
+ const double,
+ const unsigned int);
+
+template
+void
+GridRefinement::
+refine_and_coarsen_optimize<deal_II_dimension,TrilinosWrappers::Vector,deal_II_dimension>
+(Triangulation<deal_II_dimension> &,
+ const TrilinosWrappers::Vector &);
 #endif
 
-//<<<<<<< .working
 
 
 #if deal_II_dimension != 3
@@ -626,28 +686,32 @@ refine_and_coarsen_optimize (Triangulation<deal_II_dimension> &,
 template
 void
 GridRefinement::
-refine (Triangulation<deal_II_dimension,deal_II_dimension+1> &,
+refine<deal_II_dimension,Vector<float>,deal_II_dimension+1>
+       (Triangulation<deal_II_dimension,deal_II_dimension+1> &,
         const Vector<float> &,
         const double);
 
 template
 void
 GridRefinement::
-refine (Triangulation<deal_II_dimension,deal_II_dimension+1> &,
+refine<deal_II_dimension,Vector<double>,deal_II_dimension+1>
+       (Triangulation<deal_II_dimension,deal_II_dimension+1> &,
         const Vector<double> &,
         const double);
 
 template
 void
 GridRefinement::
-coarsen (Triangulation<deal_II_dimension,deal_II_dimension+1> &,
+coarsen<deal_II_dimension,Vector<float>,deal_II_dimension+1>
+       (Triangulation<deal_II_dimension,deal_II_dimension+1> &,
          const Vector<float> &,
          const double);
 
 template
 void
 GridRefinement::
-coarsen (Triangulation<deal_II_dimension,deal_II_dimension+1> &,
+coarsen<deal_II_dimension,Vector<double>,deal_II_dimension+1>
+       (Triangulation<deal_II_dimension,deal_II_dimension+1> &,
          const Vector<double> &,
          const double);
 
@@ -655,135 +719,150 @@ coarsen (Triangulation<deal_II_dimension,deal_II_dimension+1> &,
 template
 void
 GridRefinement::
-refine_and_coarsen_fixed_number (Triangulation<deal_II_dimension,deal_II_dimension+1> &,
-                                 const Vector<double> &,
-                                 const double,
-                                 const double,
-                                const unsigned int);
+refine_and_coarsen_fixed_number<deal_II_dimension,Vector<double>,deal_II_dimension+1>
+(Triangulation<deal_II_dimension,deal_II_dimension+1> &,
+ const Vector<double> &,
+ const double,
+ const double,
+ const unsigned int);
 
 template
 void
 GridRefinement::
-refine_and_coarsen_fixed_number (Triangulation<deal_II_dimension,deal_II_dimension+1> &,
-                                 const Vector<float> &,
-                                 const double,
-                                 const double,
-                                const unsigned int);
+refine_and_coarsen_fixed_number<deal_II_dimension,Vector<float>,deal_II_dimension+1>
+ (Triangulation<deal_II_dimension,deal_II_dimension+1> &,
+  const Vector<float> &,
+  const double,
+  const double,
+  const unsigned int);
 
 template
 void
 GridRefinement::
-refine_and_coarsen_fixed_fraction (Triangulation<deal_II_dimension,deal_II_dimension+1> &,
-                                   const Vector<double> &,
-                                   const double,
-                                   const double,
-                                  const unsigned int);
+refine_and_coarsen_fixed_fraction<deal_II_dimension,Vector<double>,deal_II_dimension+1>
+ (Triangulation<deal_II_dimension,deal_II_dimension+1> &,
+  const Vector<double> &,
+  const double,
+  const double,
+  const unsigned int);
 
 template
 void
 GridRefinement::
-refine_and_coarsen_fixed_fraction (Triangulation<deal_II_dimension,deal_II_dimension+1> &,
-                                   const Vector<float> &,
-                                   const double,
-                                   const double,
-                                  const unsigned int);
+refine_and_coarsen_fixed_fraction<deal_II_dimension,Vector<float>,deal_II_dimension+1>
+ (Triangulation<deal_II_dimension,deal_II_dimension+1> &,
+  const Vector<float> &,
+  const double,
+  const double,
+  const unsigned int);
 
 template
 void
 GridRefinement::
-refine_and_coarsen_optimize (Triangulation<deal_II_dimension,deal_II_dimension+1> &,
-                             const Vector<float> &);
+refine_and_coarsen_optimize<deal_II_dimension,Vector<float>,deal_II_dimension+1>
+(Triangulation<deal_II_dimension,deal_II_dimension+1> &,
+ const Vector<float> &);
 
 template
 void
 GridRefinement::
-refine_and_coarsen_optimize (Triangulation<deal_II_dimension,deal_II_dimension+1> &,
-                             const Vector<double> &);
+refine_and_coarsen_optimize<deal_II_dimension,Vector<double>,deal_II_dimension+1>
+(Triangulation<deal_II_dimension,deal_II_dimension+1> &,
+ const Vector<double> &);
 
 #ifdef DEAL_II_USE_PETSC
 template
 void
 GridRefinement::
-refine (Triangulation<deal_II_dimension,deal_II_dimension+1> &,
-        const PETScWrappers::Vector &,
-        const double);
+refine<deal_II_dimension,PETScWrappers::Vector,deal_II_dimension+1>
+ (Triangulation<deal_II_dimension,deal_II_dimension+1> &,
+  const PETScWrappers::Vector &,
+  const double);
 
 template
 void
 GridRefinement::
-coarsen (Triangulation<deal_II_dimension,deal_II_dimension+1> &,
-         const PETScWrappers::Vector &,
-         const double);
+coarsen<deal_II_dimension,PETScWrappers::Vector,deal_II_dimension+1>
+(Triangulation<deal_II_dimension,deal_II_dimension+1> &,
+ const PETScWrappers::Vector &,
+ const double);
 
 
 template
 void
 GridRefinement::
-refine_and_coarsen_fixed_number (Triangulation<deal_II_dimension,deal_II_dimension+1> &,
-                                 const PETScWrappers::Vector &,
-                                 const double,
-                                 const double,
-                                const unsigned int);
+refine_and_coarsen_fixed_number<deal_II_dimension,PETScWrappers::Vector,deal_II_dimension+1>
+(Triangulation<deal_II_dimension,deal_II_dimension+1> &,
+ const PETScWrappers::Vector &,
+ const double,
+ const double,
+ const unsigned int);
 
 template
 void
 GridRefinement::
-refine_and_coarsen_fixed_fraction (Triangulation<deal_II_dimension,deal_II_dimension+1> &,
-                                   const PETScWrappers::Vector &,
-                                   const double,
-                                   const double,
-                                  const unsigned int);
+refine_and_coarsen_fixed_fraction<deal_II_dimension,PETScWrappers::Vector,deal_II_dimension+1>
+(Triangulation<deal_II_dimension,deal_II_dimension+1> &,
+ const PETScWrappers::Vector &,
+ const double,
+ const double,
+ const unsigned int);
 
 template
 void
 GridRefinement::
-refine_and_coarsen_optimize (Triangulation<deal_II_dimension,deal_II_dimension+1> &,
-                             const PETScWrappers::Vector &);
+refine_and_coarsen_optimize<deal_II_dimension,PETScWrappers::Vector,deal_II_dimension+1>
+(Triangulation<deal_II_dimension,deal_II_dimension+1> &,
+ const PETScWrappers::Vector &);
 #endif
 
-#endif
-
-//=======
-
 #ifdef DEAL_II_USE_TRILINOS
 template
 void
 GridRefinement::
-refine (Triangulation<deal_II_dimension> &,
-        const TrilinosWrappers::Vector &,
-        const double);
+refine<deal_II_dimension,TrilinosWrappers::Vector,deal_II_dimension+1>
+ (Triangulation<deal_II_dimension,deal_II_dimension+1> &,
+  const TrilinosWrappers::Vector &,
+  const double);
 
 template
 void
 GridRefinement::
-coarsen (Triangulation<deal_II_dimension> &,
-         const TrilinosWrappers::Vector &,
-         const double);
+coarsen<deal_II_dimension,TrilinosWrappers::Vector,deal_II_dimension+1>
+(Triangulation<deal_II_dimension,deal_II_dimension+1> &,
+ const TrilinosWrappers::Vector &,
+ const double);
 
 
 template
 void
 GridRefinement::
-refine_and_coarsen_fixed_number (Triangulation<deal_II_dimension> &,
-                                 const TrilinosWrappers::Vector &,
-                                 const double,
-                                 const double,
-                                const unsigned int);
+refine_and_coarsen_fixed_number<deal_II_dimension,TrilinosWrappers::Vector,deal_II_dimension+1>
+(Triangulation<deal_II_dimension,deal_II_dimension+1> &,
+ const TrilinosWrappers::Vector &,
+ const double,
+ const double,
+ const unsigned int);
 
 template
 void
 GridRefinement::
-refine_and_coarsen_fixed_fraction (Triangulation<deal_II_dimension> &,
-                                   const TrilinosWrappers::Vector &,
-                                   const double,
-                                   const double,
-                                  const unsigned int);
+refine_and_coarsen_fixed_fraction<deal_II_dimension,TrilinosWrappers::Vector,deal_II_dimension+1>
+(Triangulation<deal_II_dimension,deal_II_dimension+1> &,
+ const TrilinosWrappers::Vector &,
+ const double,
+ const double,
+ const unsigned int);
 
 template
 void
 GridRefinement::
-refine_and_coarsen_optimize (Triangulation<deal_II_dimension> &,
-                             const TrilinosWrappers::Vector &);
+refine_and_coarsen_optimize<deal_II_dimension,TrilinosWrappers::Vector,deal_II_dimension+1>
+(Triangulation<deal_II_dimension,deal_II_dimension+1> &,
+ const TrilinosWrappers::Vector &);
+#endif
+
+
 #endif
 
 DEAL_II_NAMESPACE_CLOSE

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.