From fb44c14568090f67bf9cce5bdc2a3d89e38c9539 Mon Sep 17 00:00:00 2001 From: Martin Kronbichler Date: Tue, 29 Dec 2015 21:12:40 +0100 Subject: [PATCH] Vectorize one loop --- include/deal.II/lac/vector.templates.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/include/deal.II/lac/vector.templates.h b/include/deal.II/lac/vector.templates.h index d5a384ec47..478f64f534 100644 --- a/include/deal.II/lac/vector.templates.h +++ b/include/deal.II/lac/vector.templates.h @@ -795,11 +795,9 @@ namespace internal const dealii::Vector &src, dealii::Vector &dst) { - const T *q = src.begin()+begin; - const T *const end_q = src.begin()+end; - U *p = dst.begin()+begin; - for (; q!=end_q; ++q, ++p) - *p = *q; + DEAL_II_OPENMP_SIMD_PRAGMA + for (unsigned int i=begin; i