From: Martin Kronbichler Date: Wed, 30 Dec 2015 13:45:14 +0000 (+0100) Subject: Add instantiations X-Git-Tag: v8.4.0-rc2~120^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd3cfef9146007ee44b2cf8f032d0ca76aa66edd;p=dealii.git Add instantiations --- 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&); + \} + \}