From 7ff653a4c4cabf33676aed849ee8242022e3fa04 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Fri, 23 Apr 2021 09:49:32 -0600 Subject: [PATCH] Fix a static_assert to actually make sense. More specifically, there is a specialization Tensor<0,dim,Number> so we should reallly never get here with rank==0. --- include/deal.II/base/tensor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/deal.II/base/tensor.h b/include/deal.II/base/tensor.h index dfbbd3c510..f5894dc944 100644 --- a/include/deal.II/base/tensor.h +++ b/include/deal.II/base/tensor.h @@ -449,7 +449,7 @@ template class Tensor { public: - static_assert(rank_ >= 0, + static_assert(rank_ >= 1, "Tensors must have a rank greater than or equal to one."); static_assert(dim >= 0, "Tensors must have a dimension greater than or equal to one."); -- 2.39.5