]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add instantiations 2026/head
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Wed, 30 Dec 2015 13:45:14 +0000 (14:45 +0100)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Wed, 30 Dec 2015 13:52:13 +0000 (14:52 +0100)
include/deal.II/lac/vector.templates.h
source/lac/vector.inst.in

index 478f64f5343e96124648c307f5a043436a14b3bb..8a3bc24aa5d19e17e71151fe7b4a0cc51ff39171 100644 (file)
@@ -603,7 +603,7 @@ Vector<Number>::Vector (const Vector<OtherNumber> &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<T> &src,
                         dealii::Vector<U>       &dst)
     {
+      const T *src_ptr = src.begin();
+      U *dst_ptr = dst.begin();
       DEAL_II_OPENMP_SIMD_PRAGMA
-      for (unsigned int i=begin; i<end; ++i)
-        dst.begin()[i] = src.begin()[i];
+      for (typename dealii::Vector<T>::size_type i=begin; i<end; ++i)
+        dst_ptr[i] = src_ptr[i];
     }
 
 
index 949a95c3fcc1344e4c1fa4ffd1546c9efcc5fbb9..014de81d5a8f82b0a21d800def3b61cce11081b5 100644 (file)
@@ -66,3 +66,14 @@ for (S1, S2 : COMPLEX_SCALARS)
     template
       void Vector<S1>::reinit<S2>(const Vector<S2>&, const bool);
   }
+
+for (S1: REAL_SCALARS; S2: COMPLEX_SCALARS)
+  {
+    namespace internal
+    \{
+      namespace Vector
+      \{
+      template void copy_vector<S1,S2> (const dealii::Vector<S1>&,
+                                        dealii::Vector<S2>&);
+      \}
+    \}

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.