From: Wolfgang Bangerth Date: Mon, 28 Mar 2005 23:17:56 +0000 (+0000) Subject: A few more renamed in preparation to rank-4 tensors. X-Git-Tag: v8.0.0~14274 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7bbc966bd8947617cca758879e356637c3e80767;p=dealii.git A few more renamed in preparation to rank-4 tensors. git-svn-id: https://svn.dealii.org/trunk@10273 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 955877cbcb..3bcc1d64fb 100644 --- a/deal.II/base/include/base/symmetric_tensor.h +++ b/deal.II/base/include/base/symmetric_tensor.h @@ -101,56 +101,56 @@ namespace internal }; - - namespace Rank2Accessors - { - /** - * Switch type to select a tensor of - * rank 2 and dimension dim, - * switching on whether the tensor - * should be constant or not. - */ - template - struct AccessorTypes; + /** + * Switch type to select a tensor of + * rank 2 and dimension dim, + * switching on whether the tensor + * should be constant or not. + */ + template + struct AccessorTypes; - /** - * Switch type to select a tensor of - * rank 2 and dimension dim, - * switching on whether the tensor - * should be constant or not. - * - * Specialization for constant tensors. - */ - template - struct AccessorTypes - { - typedef - const typename StorageType<2,dim>::base_tensor_type - base_tensor_type; + /** + * Switch type to select a tensor of + * rank 2 and dimension dim, + * switching on whether the tensor + * should be constant or not. + * + * Specialization for constant tensors. + */ + template + struct AccessorTypes + { + typedef + const typename StorageType::base_tensor_type + base_tensor_type; - typedef double reference; - }; + typedef double reference; + }; - /** - * Switch type to select a tensor of - * rank 2 and dimension dim, - * switching on whether the tensor - * should be constant or not. - * - * Specialization for non-constant - * tensors. - */ - template - struct AccessorTypes - { - typedef - typename StorageType<2,dim>::base_tensor_type - base_tensor_type; + /** + * Switch type to select a tensor of + * rank 2 and dimension dim, + * switching on whether the tensor + * should be constant or not. + * + * Specialization for non-constant + * tensors. + */ + template + struct AccessorTypes + { + typedef + typename StorageType::base_tensor_type + base_tensor_type; - typedef double &reference; - }; + typedef double &reference; + }; + + namespace Rank2Accessors + { /** * Accessor class to access the @@ -170,7 +170,7 @@ namespace internal * Import which tensor we work on. */ typedef - typename AccessorTypes::base_tensor_type + typename AccessorTypes<2,dim,constness>::base_tensor_type base_tensor_type; /** @@ -180,7 +180,7 @@ namespace internal * is constant, we can only return * a value instead of a reference. */ - typedef typename AccessorTypes::reference reference; + typedef typename AccessorTypes<2,dim,constness>::reference reference; /** * Constructor. Take the tensor to @@ -188,7 +188,7 @@ namespace internal * point to as arguments. */ Accessor (base_tensor_type &tensor, - const unsigned int row); + const unsigned int row); /** * Return a reference to an element