From: Niklas Wik Date: Mon, 6 Jun 2022 11:33:47 +0000 (+0200) Subject: Fix compiler warning X-Git-Tag: v9.4.0-rc1~57^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6ce72c826ed38f4c52e38a6bfb2dc6b74b06f2bd;p=dealii.git Fix compiler warning --- diff --git a/include/deal.II/matrix_free/evaluation_kernels.h b/include/deal.II/matrix_free/evaluation_kernels.h index ff05bbc5a0..dc276f9e45 100644 --- a/include/deal.II/matrix_free/evaluation_kernels.h +++ b/include/deal.II/matrix_free/evaluation_kernels.h @@ -3697,6 +3697,15 @@ namespace internal const unsigned int face_no, const MatrixFreeFunctions::ShapeInfo &shape_info) { + if (dim == 1) + { + // This should never happen since the FE_RaviartThomasNodal is not + // defined for dim = 1. It prevents compiler warnings of infinite + // recursion. + Assert(false, ExcInternalError()); + return; + } + bool increase_max_der = false; if ((flag & EvaluationFlags::hessians && max_derivative < 2) || (flag & EvaluationFlags::gradients && max_derivative < 1))