]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Open code a loop so as to make it compatible with Trilinos vectors as well.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 27 Aug 2008 18:12:06 +0000 (18:12 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 27 Aug 2008 18:12:06 +0000 (18:12 +0000)
git-svn-id: https://svn.dealii.org/trunk@16676 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/numerics/vectors.templates.h

index b2999598060ce99d40ec916793ef4c0648281cd8..90890d321291a0fa1a5d90c53ec18a46e8f0838f 100644 (file)
@@ -480,7 +480,8 @@ void VectorTools::project (const Mapping<dim>       &mapping,
                                    // and that wouldn't necessarily go
                                    // together with the matrix and
                                    // other functions
-  std::copy (vec.begin(), vec.end(), vec_result.begin());
+  for (unsigned int i=0; i<vec.size(); ++i)
+    vec_result(i) = vec(i);
 }
 
 

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.