]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Trim output.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 18 Nov 2010 17:08:55 +0000 (17:08 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 18 Nov 2010 17:08:55 +0000 (17:08 +0000)
git-svn-id: https://svn.dealii.org/trunk@22806 0785d39b-7218-0410-832d-ea1e28bc413d

tests/mpi/trilinos_ghost_03.cc
tests/mpi/trilinos_ghost_03/ncpu_10/cmp/generic
tests/mpi/trilinos_ghost_03/ncpu_4/cmp/generic

index 7e20a85ddb83e7d9d04f86e77327132c1ad0b9f1..3b181c48746227a00f55a6589ad048da5e8b5992 100644 (file)
@@ -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;
 }
index 5131a62fed2dbc6f07c6c0788f8ae9d970169e38..49b6d61aebca7c3b5edc1a3342971cd55868ca5f 100644 (file)
@@ -1,5 +1,4 @@
 
 DEAL:0::numproc=10
 DEAL:0::ExcGhostsPresent()
-DEAL:0::l2norm: 0
 DEAL:0::OK
index 6931e9e0c351314e2d2338b24d84fa23d26032f8..3b99e45f5c1966bfb79c0c8f84bc33eb9bbfae7a 100644 (file)
@@ -1,5 +1,4 @@
 
 DEAL:0::numproc=4
 DEAL:0::ExcGhostsPresent()
-DEAL:0::l2norm: 0
 DEAL:0::OK

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.