From: Wolfgang Bangerth Date: Mon, 28 Mar 2005 23:04:35 +0000 (+0000) Subject: Add doc. Rename one variable. X-Git-Tag: v8.0.0~14280 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f0280ce4ff796cd9b842041320c23526d87f116f;p=dealii.git Add doc. Rename one variable. git-svn-id: https://svn.dealii.org/trunk@10267 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/base/include/base/symmetric_tensor.h b/deal.II/base/include/base/symmetric_tensor.h index e8be22cc82..d9af8844fe 100644 --- a/deal.II/base/include/base/symmetric_tensor.h +++ b/deal.II/base/include/base/symmetric_tensor.h @@ -40,6 +40,10 @@ namespace internal template struct StorageType; + /** + * Specialization of StorageType for + * rank-2 tensors. + */ template 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::n_independent_tensor_components; ++i) + for (; i::n_independent_components; ++i) t += 2 * data[i] * s.data[i]; return t;