]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Modify test for vector.
authorrao <rao@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 7 Dec 2010 02:28:08 +0000 (02:28 +0000)
committerrao <rao@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 7 Dec 2010 02:28:08 +0000 (02:28 +0000)
git-svn-id: https://svn.dealii.org/trunk@22930 0785d39b-7218-0410-832d-ea1e28bc413d

tests/serialization/vector.cc

index 0edaa58ef13abe94eb766949f1577f3c8cbb6d85..1def6bece99bff000621a21e44d9932e38eb0bac 100644 (file)
@@ -21,15 +21,15 @@ void test ()
 {
   unsigned int n = 5;
   
-  Vector<int> v1(n);
-  Vector<int> v2(n);
+  Vector<double> v1(n);
+  Vector<double> v2(n);
   
-  Vector<int> v3;
+  Vector<double> v3;
   
   for (unsigned int i = 0; i<n; ++i)
   {
-    v1(i) = i;
-    v2(i) = i + n;
+    v1(i) = i*1.;
+    v2(i) = i*1. + n*1.;
   }
    
 

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.