From: Timo Heister Date: Wed, 26 Jan 2011 14:38:34 +0000 (+0000) Subject: fix test and also check if all machines think the vector is ghosted. X-Git-Tag: v8.0.0~4430 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eaf2aaee7652aed794c5ee278c2a53963ab223e0;p=dealii.git 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 --- 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; }