From 20c6525d7e2975dbf6c802b021d4e1594f7396e3 Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Mon, 11 May 2020 16:19:08 -0500 Subject: [PATCH] Fix compilation with gcc-4.9.4 Closes: https://github.com/dealii/dealii/issues/10146 --- include/deal.II/matrix_free/mapping_info.templates.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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 -- 2.39.5