From: Matthias Maier Date: Mon, 11 May 2020 21:19:08 +0000 (-0500) Subject: Fix compilation with gcc-4.9.4 X-Git-Tag: v9.2.0-rc1~17^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F10149%2Fhead;p=dealii.git Fix compilation with gcc-4.9.4 Closes: https://github.com/dealii/dealii/issues/10146 --- diff --git a/include/deal.II/matrix_free/mapping_info.templates.h b/include/deal.II/matrix_free/mapping_info.templates.h index b7d7b5bae9..39fc06fea4 100644 --- a/include/deal.II/matrix_free/mapping_info.templates.h +++ b/include/deal.II/matrix_free/mapping_info.templates.h @@ -2565,11 +2565,13 @@ namespace internal // evaluate the geometry in double precision; thus, for floats we need // to do things in two sweeps and convert the final result. constexpr unsigned int n_lanes = VectorizedArrayType::size(); + using VectorizedDouble = VectorizedArray::value && n_lanes > 1) ? - n_lanes / 2 : - n_lanes)>; + ((std::is_same::value && + VectorizedArrayType::size() > 1) ? + VectorizedArrayType::size() / 2 : + VectorizedArrayType::size())>; // Create a ShapeInfo object to provide the necessary interpolators to // the various quadrature points. Note that it is initialized with the