From eaf2aaee7652aed794c5ee278c2a53963ab223e0 Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Wed, 26 Jan 2011 14:38:34 +0000 Subject: [PATCH] fix test and also check if all machines think the vector is ghosted. git-svn-id: https://svn.dealii.org/trunk@23266 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/mpi/trilinos_ghost_03.cc | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tests/mpi/trilinos_ghost_03.cc b/tests/mpi/trilinos_ghost_03.cc index eada6c808b..85a90b1e4d 100644 --- a/tests/mpi/trilinos_ghost_03.cc +++ b/tests/mpi/trilinos_ghost_03.cc @@ -52,19 +52,18 @@ void test () v_tmp.reinit(v,false,true); + Assert (v_tmp.has_ghost_elements(), ExcInternalError()); + deal_II_exceptions::disable_abort_on_exception(); - bool exc = false; try { - v_tmp.l2_norm(); + v_tmp.l2_norm(); } - catch (TrilinosWrappers::VectorBase::ExcTrilinosError e) + catch (...) { - exc = true; } - Assert (exc == true, ExcInternalError()); if (Utilities::System::get_this_mpi_process (MPI_COMM_WORLD) == 0) deallog << "OK" << std::endl; } -- 2.39.5