]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Can't call vec.l1_norm() if not on all processors.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 24 May 2013 19:18:52 +0000 (19:18 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 24 May 2013 19:18:52 +0000 (19:18 +0000)
git-svn-id: https://svn.dealii.org/trunk@29579 0785d39b-7218-0410-832d-ea1e28bc413d

tests/mpi/petsc_distribute_01.cc

index e16f7216bef6a76d8fc79240ee9b0add3aa065e8..aba4f8ce9af622fd426032e27821614c490784e1 100644 (file)
@@ -132,10 +132,11 @@ void test()
          exact_l1 = exact_l1 - (p*100+90) + (p*100+105);
       }
 
-    Assert (vec.l1_norm() == exact_l1, ExcInternalError());
+    const double l1_norm = vec.l1_norm();
+    Assert (l1_norm == exact_l1, ExcInternalError());
 
     if (myid == 0)
-      deallog << "Norm = " << vec.l1_norm() << std::endl;
+      deallog << "Norm = " << l1_norm << 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.