]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
update test
authorheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 5 Jun 2013 22:59:02 +0000 (22:59 +0000)
committerheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 5 Jun 2013 22:59:02 +0000 (22:59 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_unify_linear_algebra@29774 0785d39b-7218-0410-832d-ea1e28bc413d

tests/gla/mat_01.cc
tests/gla/mat_01/ncpu_10/cmp/generic
tests/gla/mat_01/ncpu_4/cmp/generic

index 46d48c2bd4a0fa33cc465f8268d6ef6fb676efae..a396557e1f8271b3f78e20dfbd0982f188e64c7d 100644 (file)
@@ -84,39 +84,17 @@ void test ()
 
 int main (int argc, char **argv)
 {
-  Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv);
-  unsigned int myid = Utilities::MPI::this_mpi_process (MPI_COMM_WORLD);
-
-  deallog.push(Utilities::int_to_string(myid));
-
-  if (myid == 0)
-    {
-      std::ofstream logfile(output_file_for_mpi("mat_01").c_str());
-      deallog.attach(logfile);
-      deallog << std::setprecision(4);
-      deallog.depth_console(0);
-      deallog.threshold_double(1.e-10);
-
-      {        
-       deallog.push("PETSc");
-       test<LA_PETSc>();
-       deallog.pop();  
-       deallog.push("Trilinos");
-       test<LA_Trilinos>();
-       deallog.pop();  
-      }
-      
-    }
-  else
-      {        
-       deallog.push("PETSc");
-       test<LA_PETSc>();
-       deallog.pop();  
-       deallog.push("Trilinos");
-       test<LA_Trilinos>();
-       deallog.pop();  
-      }
-
+  Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
+  MPILogInitAll log(__FILE__);
+  {    
+    deallog.push("PETSc");
+    test<LA_PETSc>();
+    deallog.pop();     
+    deallog.push("Trilinos");
+    test<LA_Trilinos>();
+    deallog.pop();     
+  }
+  
   // compile, don't run
   //if (myid==9999)
     //  test<LA_Dummy>();
index a748da52cced3275b42e12298391227431c968ef..e48aed9e6b49ce37130cb8eefb5e298e08f27ed0 100644 (file)
@@ -1,11 +1,29 @@
 
 DEAL:0:PETSc::numproc=10
-DEAL:0:PETSc::0: 0
-DEAL:0:PETSc::1: 1.000
-DEAL:0:PETSc::0,1 : 10.00
+DEAL:0:PETSc::0: 0.00000
+DEAL:0:PETSc::1: 1.00000
+DEAL:0:PETSc::0,1 : 10.0000
 DEAL:0:PETSc::OK
 DEAL:0:Trilinos::numproc=10
-DEAL:0:Trilinos::0: 0
-DEAL:0:Trilinos::1: 1.000
-DEAL:0:Trilinos::0,1 : 10.00
+DEAL:0:Trilinos::0: 0.00000
+DEAL:0:Trilinos::1: 1.00000
+DEAL:0:Trilinos::0,1 : 10.0000
 DEAL:0:Trilinos::OK
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
index 88d363c606c45f5c94caa46f46ffbf0b0cfc13bd..1d7a69e6a513fd87314413da6881d9a3ce29b42a 100644 (file)
@@ -1,11 +1,17 @@
 
 DEAL:0:PETSc::numproc=4
-DEAL:0:PETSc::0: 0
-DEAL:0:PETSc::1: 1.000
-DEAL:0:PETSc::0,1 : 4.000
+DEAL:0:PETSc::0: 0.00000
+DEAL:0:PETSc::1: 1.00000
+DEAL:0:PETSc::0,1 : 4.00000
 DEAL:0:PETSc::OK
 DEAL:0:Trilinos::numproc=4
-DEAL:0:Trilinos::0: 0
-DEAL:0:Trilinos::1: 1.000
-DEAL:0:Trilinos::0,1 : 4.000
+DEAL:0:Trilinos::0: 0.00000
+DEAL:0:Trilinos::1: 1.00000
+DEAL:0:Trilinos::0,1 : 4.00000
 DEAL:0:Trilinos::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.