]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Add doc. Rename one variable.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 28 Mar 2005 23:04:35 +0000 (23:04 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 28 Mar 2005 23:04:35 +0000 (23:04 +0000)
git-svn-id: https://svn.dealii.org/trunk@10267 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/include/base/symmetric_tensor.h

index e8be22cc82b3817ee8fb9362921c67e5049875a9..d9af8844feca704d4ba0cd31d0dde7c41907a5fd 100644 (file)
@@ -40,6 +40,10 @@ namespace internal
     template <int rank, int dim>
     struct StorageType;
 
+                                     /**
+                                      * Specialization of StorageType for
+                                      * rank-2 tensors.
+                                      */
     template <int dim>
     struct StorageType<2,dim> 
     {
@@ -52,7 +56,7 @@ namespace internal
                                           * classes that need it.
                                           */
         static const unsigned int
-        n_independent_tensor_components = (dim*dim + dim)/2;
+        n_independent_components = (dim*dim + dim)/2;
 
                                          /**
                                           * Declare the type in which we actually
@@ -63,7 +67,7 @@ namespace internal
                                           * any assumptions about the storage
                                           * format in your application programs.
                                           */
-        typedef Tensor<1,n_independent_tensor_components> base_tensor_type;
+        typedef Tensor<1,n_independent_components> base_tensor_type;
     };
     
     
@@ -632,7 +636,7 @@ SymmetricTensor<2,dim>::operator * (const SymmetricTensor &s) const
   for (; i<dim; ++i)
     t += data[i] * s.data[i];
 
-  for (; i<internal::SymmetricTensor::StorageType<2,dim>::n_independent_tensor_components; ++i)
+  for (; i<internal::SymmetricTensor::StorageType<2,dim>::n_independent_components; ++i)
     t += 2 * data[i] * s.data[i];
 
   return t;

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.