]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Eliminate circular references of forward declaration files between the different...
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 28 Feb 1999 19:28:09 +0000 (19:28 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 28 Feb 1999 19:28:09 +0000 (19:28 +0000)
git-svn-id: https://svn.dealii.org/trunk@925 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/include/base/tensor_base.h
deal.II/base/include/base/tensor_function.h

index 49b6fec21e8c4ab3fbbafb4a2a59d58f3ca98916..2c20f2e45dd438a913f164dc4af5ef858b1860e0 100644 (file)
@@ -13,7 +13,9 @@
 #include <base/exceptions.h>
 #include <iostream>
 #include <vector>
-#include <lac/forward-declarations.h>
+
+template <typename number> class Vector;
+
 
 
 // general template; specialized for rank==1; the general template is in
@@ -164,27 +166,29 @@ class Tensor<1,dim> {
                                     /**
                                      * Fill a vector with all tensor elements.
                                      *
-                                     * Thsi function unrolls all
+                                     * This function unrolls all
                                      * tensor entries into a single,
                                      * linearly numbered vector. As
                                      * usual in C++, the rightmost
                                      * index marches fastest.
                                      */
-    void unroll(Vector<double> & result) const;
+    void unroll (Vector<double> &result) const;
      
   protected:
                                     /**
-                                     *  Stores the values in a simple array.
+                                     *  Store the values in a simple array.
                                      */
     double values[dim];
 
                                     /**
                                      * Help function for unroll.
                                      */
-    void unroll_recursion(Vector<double> & result, unsigned& start_index) const;
+    void unroll_recursion (Vector<double> & result,
+                          unsigned& start_index) const;
 
     template<>
-    friend void Tensor<2,dim>::unroll_recursion(Vector<double> &, unsigned&) const;
+    friend void Tensor<2,dim>::unroll_recursion(Vector<double> &,
+                                               unsigned&) const;
 };
 
                                 /**
index 810a2d630009936ed684ee4a5f1f262d24cee259..2acdd8122f0efe0d3ec0eb802256e1f1294371fb 100644 (file)
 #include <base/point.h>
 #include <base/functiontime.h>
 #include <base/tensorindex.h>
-#include <lac/forward-declarations.h>
+#include <base/forward-declarations.h>
 
-template<int rank_, int dim>
-class Tensor;
+template <typename number> class Vector;
 
 /**
  * Base class for multi-valued functions.

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.