]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Also check the reverse assignment.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 24 Jun 2009 16:52:51 +0000 (16:52 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 24 Jun 2009 16:52:51 +0000 (16:52 +0000)
git-svn-id: https://svn.dealii.org/trunk@18965 0785d39b-7218-0410-832d-ea1e28bc413d

tests/trilinos/49a.cc

index afb3d97968edcaf1050238912bd30b5cd422e1c4..0bd323e26f0df62eec2b88f6212ed988e7486e8d 100644 (file)
@@ -44,6 +44,16 @@ void test (TrilinosWrappers::BlockVector &v)
       Assert (v(i) == i, ExcInternalError());
     }
 
+                                  // now also check the reverse assignment
+  w = 0;
+  w = v;
+  for (unsigned int i=0; i<v.size(); ++i)
+    {
+      Assert (w(i) == i, ExcInternalError());
+      Assert (v(i) == i, ExcInternalError());
+    }
+  
+  
   deallog << "OK" << std::endl;
 }
 

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.