]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
fix compress() handling
authorheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 27 May 2013 07:55:19 +0000 (07:55 +0000)
committerheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 27 May 2013 07:55:19 +0000 (07:55 +0000)
git-svn-id: https://svn.dealii.org/trunk@29630 0785d39b-7218-0410-832d-ea1e28bc413d

tests/mpi/trilinos_distribute_01.cc

index db6bf2f15885baff439dcbe8eaf0e93a8b965543..79675d3e6c7b849cad26784e6e3b091a2c70fa3c 100644 (file)
@@ -51,7 +51,7 @@ void test()
   Assert (vec.local_range().second == 100*myid+100, ExcInternalError());
   for (unsigned int i=vec.local_range().first; i<vec.local_range().second; ++i)
     vec(i) = i;
-  vec.compress();
+  vec.compress(VectorOperation::insert);
 
   // verify correctness so far
   {
@@ -100,8 +100,6 @@ void test()
   cm.distribute (vec);
 
   // verify correctness
-  vec.compress ();
-
   if (myid != 0)
     Assert (vec(vec.local_range().first+10) == vec.local_range().first-25,
            ExcInternalError());

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.