]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove a static assert in symmetric tensor 14623/head
authorJean-Paul Pelteret <jppelteret@gmail.com>
Fri, 30 Dec 2022 13:44:29 +0000 (14:44 +0100)
committerJean-Paul Pelteret <jppelteret@gmail.com>
Fri, 30 Dec 2022 13:44:29 +0000 (14:44 +0100)
include/deal.II/base/symmetric_tensor.h

index 7dbcadabead99c7f99eca6bf746bce6108b44f98..4a8397a6d0c1b8957a7d1b2d2bf7f84f9f6712a2 100644 (file)
@@ -1953,8 +1953,6 @@ namespace internal
                           typename SymmetricTensorAccessors::
                             StorageType<2, dim, Number>::base_tensor_type &data)
   {
-    static_assert(dim <= 3, "The selected dimension is not yet supported.");
-
     // 1d is very simple and done first
     if (dim == 1)
       return data[0];
@@ -2002,8 +2000,6 @@ namespace internal
                           const typename SymmetricTensorAccessors::
                             StorageType<2, dim, Number>::base_tensor_type &data)
   {
-    static_assert(dim <= 3, "The selected dimension is not yet supported.");
-
     // 1d is very simple and done first
     if (dim == 1)
       return data[0];
@@ -2051,8 +2047,6 @@ namespace internal
                           typename SymmetricTensorAccessors::
                             StorageType<4, dim, Number>::base_tensor_type &data)
   {
-    static_assert(dim <= 3, "The selected dimension is not yet supported.");
-
     switch (dim)
       {
         case 1:
@@ -2101,8 +2095,6 @@ namespace internal
                           const typename SymmetricTensorAccessors::
                             StorageType<4, dim, Number>::base_tensor_type &data)
   {
-    static_assert(dim <= 3, "The selected dimension is not yet supported.");
-
     switch (dim)
       {
         case 1:

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.