From af426157d9da01e4fcc8d683718fe137495cb6d7 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Fri, 24 May 2013 19:18:52 +0000 Subject: [PATCH] Can't call vec.l1_norm() if not on all processors. git-svn-id: https://svn.dealii.org/trunk@29579 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/mpi/petsc_distribute_01.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/mpi/petsc_distribute_01.cc b/tests/mpi/petsc_distribute_01.cc index e16f7216be..aba4f8ce9a 100644 --- a/tests/mpi/petsc_distribute_01.cc +++ b/tests/mpi/petsc_distribute_01.cc @@ -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; } } -- 2.39.5