From bd3cfef9146007ee44b2cf8f032d0ca76aa66edd Mon Sep 17 00:00:00 2001 From: Martin Kronbichler Date: Wed, 30 Dec 2015 14:45:14 +0100 Subject: [PATCH] Add instantiations --- include/deal.II/lac/vector.templates.h | 8 +++++--- source/lac/vector.inst.in | 11 +++++++++++ 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/include/deal.II/lac/vector.templates.h b/include/deal.II/lac/vector.templates.h index 478f64f534..8a3bc24aa5 100644 --- a/include/deal.II/lac/vector.templates.h +++ b/include/deal.II/lac/vector.templates.h @@ -603,7 +603,7 @@ Vector::Vector (const Vector &v) if (vec_size != 0) { allocate(); - std::copy (v.begin(), v.end(), begin()); + *this = v; } } #endif @@ -795,9 +795,11 @@ namespace internal const dealii::Vector &src, dealii::Vector &dst) { + const T *src_ptr = src.begin(); + U *dst_ptr = dst.begin(); DEAL_II_OPENMP_SIMD_PRAGMA - for (unsigned int i=begin; i::size_type i=begin; i::reinit(const Vector&, const bool); } + +for (S1: REAL_SCALARS; S2: COMPLEX_SCALARS) + { + namespace internal + \{ + namespace Vector + \{ + template void copy_vector (const dealii::Vector&, + dealii::Vector&); + \} + \} -- 2.39.5