From: bangerth Date: Thu, 18 Nov 2010 17:08:55 +0000 (+0000) Subject: Trim output. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e775afaa796f7c4d6939f6df4c626f1b89cc689;p=dealii-svn.git Trim output. git-svn-id: https://svn.dealii.org/trunk@22806 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/mpi/trilinos_ghost_03.cc b/tests/mpi/trilinos_ghost_03.cc index 7e20a85ddb..3b181c4874 100644 --- a/tests/mpi/trilinos_ghost_03.cc +++ b/tests/mpi/trilinos_ghost_03.cc @@ -54,28 +54,17 @@ void test () deal_II_exceptions::disable_abort_on_exception(); - double l2norm = 0.0; + bool exc = false; try { - // some Versions of Trilinos throw an - // Exception here, some do not... -// l2norm = v_tmp.l2_norm(); } catch (TrilinosWrappers::VectorBase::ExcTrilinosError e) { + exc = true; } - - if (myid == 0) - { - deallog << "l2norm: " << l2norm << std::endl; - } - - double value=l2norm*l2norm - 2.0*numproc; - -// Assert(std::abs(value)<1.0e-10, ExcInternalError()); - + Assert (exc == true, ExcInternalError()); if (Utilities::System::get_this_mpi_process (MPI_COMM_WORLD) == 0) deallog << "OK" << std::endl; } diff --git a/tests/mpi/trilinos_ghost_03/ncpu_10/cmp/generic b/tests/mpi/trilinos_ghost_03/ncpu_10/cmp/generic index 5131a62fed..49b6d61aeb 100644 --- a/tests/mpi/trilinos_ghost_03/ncpu_10/cmp/generic +++ b/tests/mpi/trilinos_ghost_03/ncpu_10/cmp/generic @@ -1,5 +1,4 @@ DEAL:0::numproc=10 DEAL:0::ExcGhostsPresent() -DEAL:0::l2norm: 0 DEAL:0::OK diff --git a/tests/mpi/trilinos_ghost_03/ncpu_4/cmp/generic b/tests/mpi/trilinos_ghost_03/ncpu_4/cmp/generic index 6931e9e0c3..3b99e45f5c 100644 --- a/tests/mpi/trilinos_ghost_03/ncpu_4/cmp/generic +++ b/tests/mpi/trilinos_ghost_03/ncpu_4/cmp/generic @@ -1,5 +1,4 @@ DEAL:0::numproc=4 DEAL:0::ExcGhostsPresent() -DEAL:0::l2norm: 0 DEAL:0::OK