]> https://gitweb.dealii.org/ - dealii.git/commitdiff
fix test and also check if all machines think the vector is ghosted.
authorTimo Heister <timo.heister@gmail.com>
Wed, 26 Jan 2011 14:38:34 +0000 (14:38 +0000)
committerTimo Heister <timo.heister@gmail.com>
Wed, 26 Jan 2011 14:38:34 +0000 (14:38 +0000)
git-svn-id: https://svn.dealii.org/trunk@23266 0785d39b-7218-0410-832d-ea1e28bc413d

tests/mpi/trilinos_ghost_03.cc

index eada6c808b8a1f4e6c4dc5b03c192ff316752cb4..85a90b1e4d57be26a8512fd709c6a4df54e17fe7 100644 (file)
@@ -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;
 }

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.