From 7bbc966bd8947617cca758879e356637c3e80767 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Mon, 28 Mar 2005 23:17:56 +0000 Subject: [PATCH] A few more renamed in preparation to rank-4 tensors. git-svn-id: https://svn.dealii.org/trunk@10273 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/base/include/base/symmetric_tensor.h | 94 ++++++++++---------- 1 file changed, 47 insertions(+), 47 deletions(-) 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 -- 2.39.5