]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Tensor<rank,dim,Number>: Remove obsolete exception
authorMatthias Maier <tamiko@43-1.org>
Thu, 17 Sep 2015 05:02:48 +0000 (00:02 -0500)
committerMatthias Maier <tamiko@43-1.org>
Mon, 21 Sep 2015 00:59:11 +0000 (19:59 -0500)
include/deal.II/base/tensor.h
include/deal.II/base/tensor_deprecated.h

index bb5e1edf28425549f80e03c2a835d1e9fae833a4..fe219184cb4d70b39a93df4bb518185964003809 100644 (file)
@@ -552,15 +552,6 @@ public:
   template <class Archive>
   void serialize(Archive &ar, const unsigned int version);
 
-  /**
-   * Exception.
-   */
-  DeclException1 (ExcInvalidTensorContractionIndex,
-                  int,
-                  << "You have requested contraction of tensors over index "
-                  << arg1
-                  << ", but this is not possible for tensors of the current type.");
-
   /**
    * Internal type declaration that is used to specialize the return type
    * of operator[]() for Tensor<1,dim,Number>
index 6fdd0d897d68ac8262834226ced5ef3893522f7e..646fe76d481fec4462db4f69d3361ec8bfeab514 100644 (file)
@@ -28,6 +28,17 @@ DEAL_II_NAMESPACE_OPEN
  */
 //@{
 
+/**
+ * Exception.
+ *
+ * @deprecated
+ */
+DeclException1 (ExcInvalidTensorContractionIndex,
+                int,
+                << "You have requested contraction of tensors over index "
+                << arg1
+                << ", but this is not possible for tensors of the current type.");
+
 
 /**
  * Double contract two tensors of rank 2, thus computing the Frobenius inner
@@ -260,8 +271,7 @@ void contract (Tensor<2,dim,Number>       &dest,
           break;
 
         default:
-          Assert (false,
-                  (typename Tensor<2,dim,Number>::ExcInvalidTensorContractionIndex (index2)));
+          Assert (false, (ExcInvalidTensorContractionIndex (index2)));
         };
       break;
     case 2:
@@ -281,13 +291,12 @@ void contract (Tensor<2,dim,Number>       &dest,
           break;
 
         default:
-          Assert (false,
-                  (typename Tensor<2,dim,Number>::ExcInvalidTensorContractionIndex (index2)));
+          Assert (false, (ExcInvalidTensorContractionIndex (index2)));
         };
       break;
 
     default:
-      Assert (false, (typename Tensor<2,dim,Number>::ExcInvalidTensorContractionIndex (index1)));
+      Assert (false, (ExcInvalidTensorContractionIndex (index1)));
     };
 }
 
@@ -323,8 +332,7 @@ void contract (Tensor<2,dim,Number>       &dest,
       break;
 
     default:
-      Assert (false,
-              (typename Tensor<2,dim,Number>::ExcInvalidTensorContractionIndex (index1)));
+      Assert (false, (ExcInvalidTensorContractionIndex (index1)));
     };
 }
 
@@ -356,8 +364,7 @@ void contract (Tensor<3,dim,Number>       &dest,
                   dest[i][j][k] += src1[l][i][j] * src2[k][l];
           break;
         default:
-          Assert (false,
-                  (typename Tensor<2,dim,Number>::ExcInvalidTensorContractionIndex (index2)));
+          Assert (false, (ExcInvalidTensorContractionIndex (index2)));
         }
 
       break;
@@ -379,8 +386,7 @@ void contract (Tensor<3,dim,Number>       &dest,
                   dest[i][j][k] += src1[i][l][j] * src2[k][l];
           break;
         default:
-          Assert (false,
-                  (typename Tensor<2,dim,Number>::ExcInvalidTensorContractionIndex (index2)));
+          Assert (false, (ExcInvalidTensorContractionIndex (index2)));
         }
 
       break;
@@ -402,14 +408,12 @@ void contract (Tensor<3,dim,Number>       &dest,
                   dest[i][j][k] += src1[i][j][l] * src2[k][l];
           break;
         default:
-          Assert (false,
-                  (typename Tensor<2,dim,Number>::ExcInvalidTensorContractionIndex (index2)));
+          Assert (false, (ExcInvalidTensorContractionIndex (index2)));
         }
 
       break;
     default:
-      Assert (false,
-              (typename Tensor<3,dim,Number>::ExcInvalidTensorContractionIndex (index1)));
+      Assert (false, (ExcInvalidTensorContractionIndex (index1)));
     }
 }
 

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.