]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Clean up.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 12 Sep 2002 22:11:30 +0000 (22:11 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 12 Sep 2002 22:11:30 +0000 (22:11 +0000)
git-svn-id: https://svn.dealii.org/trunk@6411 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/include/base/tensor.h
deal.II/base/include/base/tensor_base.h
deal.II/base/source/tensor.cc

index 2cd00e9ec366b17a69900d42f8eb70782381b5b1..91b541014cc32e3c85b21c76178096c7b6a3fc0e 100644 (file)
@@ -196,8 +196,8 @@ class Tensor
                                     /**
                                      * Help function for unroll.
                                      */
-    void unroll_recursion(Vector<double> &result,
-                         unsigned int   &start_index) const;
+    void unroll_recursion(Vector<double>     &result,
+                         const unsigned int &start_index) const;
 
                                     // make the following class a
                                     // friend to this class. in principle,
index af2f6b0ca7d55767bb234f762eb5d30b7eac8cef..ba26ec427ab305efac59242da79b2249cad4695b 100644 (file)
@@ -264,8 +264,8 @@ class Tensor<1,dim>
                                      * case, even if it should be
                                      * public for your compiler.
                                      */
-    void unroll_recursion (Vector<double> &result,
-                          unsigned int   &start_index) const;
+    void unroll_recursion (Vector<double>     &result,
+                          const unsigned int &start_index) const;
     
   private:
                                     /**
index 1acb534907ba9e0136de70ba829753cd755933dd..0198c014e8efb2d54b85293f74362a27073a099d 100644 (file)
@@ -27,34 +27,35 @@ const unsigned int Tensor<rank,dim>::dimension;
 
 template <int dim>
 void
-Tensor<1,dim>::unroll( Vector<double>& result) const
+Tensor<1,dim>::unroll (Vector<double> &result) const
 {
-  Assert(result.size()==dim,
-        ExcWrongVectorSize(dim, result.size()));
+  Assert (result.size()==dim,
+          ExcDimensionMismatch(dim, result.size()));
 
   unsigned index = 0;
-  unroll_recursion(result,index);
+  unroll_recursion (result,index);
 }
 
 
 
 template <int rank_, int dim>
 void
-Tensor<rank_, dim>::unroll( Vector<double>& result) const
+Tensor<rank_, dim>::unroll (Vector<double> &result) const
 {
   Assert(result.size()==std::pow(static_cast<double>(dim),rank_),
         ExcWrongVectorSize(static_cast<unsigned int>(std::pow(static_cast<double>(dim),rank_)),
                            result.size()));
 
   unsigned index = 0;
-  unroll_recursion(result,index);
+  unroll_recursion (result, index);
 }
 
 
 
 template <int rank_, int dim>
 void
-Tensor<rank_, dim>::unroll_recursion( Vector<double>& result, unsigned& index) const
+Tensor<rank_, dim>::unroll_recursion (Vector<double>     &result,
+                                      const unsigned int &index) const
 {
   for (unsigned i=0; i<dim; ++i)
     {
@@ -66,7 +67,8 @@ Tensor<rank_, dim>::unroll_recursion( Vector<double>& result, unsigned& index) c
 
 template<int dim>
 void
-Tensor<1,dim>::unroll_recursion( Vector<double>& result, unsigned& index) const
+Tensor<1,dim>::unroll_recursion (Vector<double>     &result,
+                                 const unsigned int &index) const
 {
   for (unsigned i=0; i<dim; ++i)
     result(index++) = operator[](i);  

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.