From: Jean-Paul Pelteret Date: Fri, 30 Dec 2022 13:44:29 +0000 (+0100) Subject: Remove a static assert in symmetric tensor X-Git-Tag: v9.5.0-rc1~692^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=047a30201d7b2b045413235b1c819afc82e49f61;p=dealii.git Remove a static assert in symmetric tensor --- diff --git a/include/deal.II/base/symmetric_tensor.h b/include/deal.II/base/symmetric_tensor.h index 7dbcadabea..4a8397a6d0 100644 --- a/include/deal.II/base/symmetric_tensor.h +++ b/include/deal.II/base/symmetric_tensor.h @@ -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: