From 047a30201d7b2b045413235b1c819afc82e49f61 Mon Sep 17 00:00:00 2001 From: Jean-Paul Pelteret Date: Fri, 30 Dec 2022 14:44:29 +0100 Subject: [PATCH] Remove a static assert in symmetric tensor --- include/deal.II/base/symmetric_tensor.h | 8 -------- 1 file changed, 8 deletions(-) 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: -- 2.39.5