]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Make previous commit useful so that we don't have to provide a template
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 13 Feb 2010 05:13:04 +0000 (05:13 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 13 Feb 2010 05:13:04 +0000 (05:13 +0000)
argument by hand.

git-svn-id: https://svn.dealii.org/trunk@20590 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/multigrid/mg_smoother.h

index b352d3c2e5a5898f749801857ba69838252b5972..d298470a95f83aae5a6f7ad35bb0b6876079c6d3 100644 (file)
@@ -236,9 +236,9 @@ class MGSmootherRelaxation : public MGSmoother<VECTOR>
                                      * initialization function of the
                                      * relaxation method.
                                      */
-    template <class MATRIX2, class DATA>
+    template <class MATRIX2>
     void initialize (const MGLevelObject<MATRIX2>& matrices,
-                    const DATA& additional_data = RELAX::AdditionalData());
+                    const typename RELAX::AdditionalData & additional_data = typename RELAX::AdditionalData());
 
                                     /**
                                      * Initialize for matrices. This
@@ -405,9 +405,9 @@ class MGSmootherPrecondition : public MGSmoother<VECTOR>
                                      * initialization function of the
                                      * relaxation method.
                                      */
-    template <class MATRIX2, class DATA>
+    template <class MATRIX2>
     void initialize (const MGLevelObject<MATRIX2>& matrices,
-                    const DATA& additional_data = PRECONDITIONER::AdditionalData());
+                    const typename PRECONDITIONER::AdditionalData& additional_data = typename PRECONDITIONER::AdditionalData());
 
                                     /**
                                      * Initialize for matrices. This
@@ -613,11 +613,11 @@ MGSmootherRelaxation<MATRIX, RELAX, VECTOR>::clear ()
 
 
 template <class MATRIX, class RELAX, class VECTOR>
-template <class MATRIX2, class DATA>
+template <class MATRIX2>
 inline void
 MGSmootherRelaxation<MATRIX, RELAX, VECTOR>::initialize (
   const MGLevelObject<MATRIX2>& m,
-  const DATA& data)
+  const typename RELAX::AdditionalData& data)
 {
   const unsigned int min = m.get_minlevel();
   const unsigned int max = m.get_maxlevel();
@@ -829,6 +829,7 @@ MGSmootherPrecondition<MATRIX, PRECONDITIONER, VECTOR>::MGSmootherPrecondition(
 {}
 
 
+
 template <class MATRIX, class PRECONDITIONER, class VECTOR>
 inline void
 MGSmootherPrecondition<MATRIX, PRECONDITIONER, VECTOR>::clear ()
@@ -842,12 +843,13 @@ MGSmootherPrecondition<MATRIX, PRECONDITIONER, VECTOR>::clear ()
 }
 
 
+
 template <class MATRIX, class PRECONDITIONER, class VECTOR>
-template <class MATRIX2, class DATA>
+template <class MATRIX2>
 inline void
 MGSmootherPrecondition<MATRIX, PRECONDITIONER, VECTOR>::initialize (
   const MGLevelObject<MATRIX2>& m,
-  const DATA& data)
+  const typename PRECONDITIONER::AdditionalData& data)
 {
   const unsigned int min = m.get_minlevel();
   const unsigned int max = m.get_maxlevel();
@@ -862,6 +864,8 @@ MGSmootherPrecondition<MATRIX, PRECONDITIONER, VECTOR>::initialize (
     }
 }
 
+
+
 template <class MATRIX, class PRECONDITIONER, class VECTOR>
 template <class MATRIX2, class DATA>
 inline void
@@ -887,6 +891,8 @@ MGSmootherPrecondition<MATRIX, PRECONDITIONER, VECTOR>::initialize (
     }
 }
 
+
+
 template <class MATRIX, class PRECONDITIONER, class VECTOR>
 template <class MATRIX2, class DATA>
 inline void
@@ -909,6 +915,8 @@ MGSmootherPrecondition<MATRIX, PRECONDITIONER, VECTOR>::initialize (
     }
 }
 
+
+
 template <class MATRIX, class PRECONDITIONER, class VECTOR>
 template <class MATRIX2, class DATA>
 inline void
@@ -936,6 +944,8 @@ MGSmootherPrecondition<MATRIX, PRECONDITIONER, VECTOR>::initialize (
     }
 }
 
+
+
 template <class MATRIX, class PRECONDITIONER, class VECTOR>
 inline void
 MGSmootherPrecondition<MATRIX, PRECONDITIONER, VECTOR>::smooth(
@@ -1009,6 +1019,7 @@ MGSmootherPrecondition<MATRIX, PRECONDITIONER, VECTOR>::smooth(
 }
 
 
+
 template <class MATRIX, class PRECONDITIONER, class VECTOR>
 inline unsigned int
 MGSmootherPrecondition<MATRIX, PRECONDITIONER, VECTOR>::

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.