]> https://gitweb.dealii.org/ - dealii.git/commitdiff
fix test and output
authorTimo Heister <timo.heister@gmail.com>
Thu, 30 May 2013 00:36:51 +0000 (00:36 +0000)
committerTimo Heister <timo.heister@gmail.com>
Thu, 30 May 2013 00:36:51 +0000 (00:36 +0000)
git-svn-id: https://svn.dealii.org/trunk@29667 0785d39b-7218-0410-832d-ea1e28bc413d

tests/mpi/tria_01.cc
tests/mpi/tria_01/ncpu_10/cmp/generic
tests/mpi/tria_01/ncpu_2/cmp/generic
tests/mpi/tria_01/ncpu_4/cmp/generic

index 4417c12badce11bff4574596f9e0dc6360680a65..71075f50284180f2ae3c417f6d95b32f0bb482cf 100644 (file)
@@ -51,12 +51,13 @@ void test()
   
   deallog << "begin(1)==end(1)? " << (tr.begin(1)==tr.end(1)) << std::endl;
 
-  if (myid!=0)
-    Assert(tr.begin(1)==tr.end(1), ExcInternalError());  
   
   deallog << "subdomainid = "
          << tr.begin_active()->subdomain_id()
          << std::endl;
+
+  //if (myid!=0)
+    //   Assert(tr.begin(1)==tr.end(1), ExcInternalError());  
   
   const unsigned int checksum = tr.get_checksum ();
   if (Utilities::MPI::this_mpi_process (MPI_COMM_WORLD) == 0)
@@ -72,24 +73,9 @@ void test()
 int main(int argc, char *argv[])
 {
   Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
-
-  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("tria_01").c_str());
-      deallog.attach(logfile);
-      deallog.depth_console(0);
-      deallog.threshold_double(1.e-10);
-
-      deallog.push("2d");
-      test<2>();
-      deallog.pop();
-    }
-  else
-    test<2>();
-
+  MPILogInitAll log(__FILE__);
+  
+  deallog.push("2d");
+  test<2>();
+  deallog.pop();
 }
index 106d06a0d2f1e1d2ade074c1ad3c034362363fb2..ffc818c011ae889485c8790700b31cef9ed262aa 100644 (file)
@@ -1,5 +1,82 @@
 
-DEAL:0:2d::subdomainid = 0
-DEAL:0:2d::#cells = 29035
-DEAL:0:2d::Checksum: 1364131841
+DEAL:0:2d::#cells = 4
+DEAL:0:2d::proc 0, n levels 1
+DEAL:0:2d::proc 0, n gobal levels 2
+DEAL:0:2d::begin().cell_index 0
+DEAL:0:2d::begin(0).cell_index 0
+DEAL:0:2d::begin(1)==end(1)? 1
+DEAL:0:2d::subdomainid = 4294967294
+DEAL:0:2d::Checksum: 167510149
 DEAL:0:2d::OK
+
+DEAL:1:2d::proc 1, n levels 1
+DEAL:1:2d::proc 1, n gobal levels 2
+DEAL:1:2d::begin().cell_index 0
+DEAL:1:2d::begin(0).cell_index 0
+DEAL:1:2d::begin(1)==end(1)? 1
+DEAL:1:2d::subdomainid = 4294967294
+
+
+DEAL:2:2d::proc 2, n levels 2
+DEAL:2:2d::proc 2, n gobal levels 2
+DEAL:2:2d::begin().cell_index 0
+DEAL:2:2d::begin(0).cell_index 0
+DEAL:2:2d::begin(1)==end(1)? 0
+DEAL:2:2d::subdomainid = 2
+
+
+DEAL:3:2d::proc 3, n levels 1
+DEAL:3:2d::proc 3, n gobal levels 2
+DEAL:3:2d::begin().cell_index 0
+DEAL:3:2d::begin(0).cell_index 0
+DEAL:3:2d::begin(1)==end(1)? 1
+DEAL:3:2d::subdomainid = 4294967294
+
+
+DEAL:4:2d::proc 4, n levels 1
+DEAL:4:2d::proc 4, n gobal levels 2
+DEAL:4:2d::begin().cell_index 0
+DEAL:4:2d::begin(0).cell_index 0
+DEAL:4:2d::begin(1)==end(1)? 1
+DEAL:4:2d::subdomainid = 4294967294
+
+
+DEAL:5:2d::proc 5, n levels 1
+DEAL:5:2d::proc 5, n gobal levels 2
+DEAL:5:2d::begin().cell_index 0
+DEAL:5:2d::begin(0).cell_index 0
+DEAL:5:2d::begin(1)==end(1)? 1
+DEAL:5:2d::subdomainid = 4294967294
+
+
+DEAL:6:2d::proc 6, n levels 1
+DEAL:6:2d::proc 6, n gobal levels 2
+DEAL:6:2d::begin().cell_index 0
+DEAL:6:2d::begin(0).cell_index 0
+DEAL:6:2d::begin(1)==end(1)? 1
+DEAL:6:2d::subdomainid = 4294967294
+
+
+DEAL:7:2d::proc 7, n levels 1
+DEAL:7:2d::proc 7, n gobal levels 2
+DEAL:7:2d::begin().cell_index 0
+DEAL:7:2d::begin(0).cell_index 0
+DEAL:7:2d::begin(1)==end(1)? 1
+DEAL:7:2d::subdomainid = 4294967294
+
+
+DEAL:8:2d::proc 8, n levels 1
+DEAL:8:2d::proc 8, n gobal levels 2
+DEAL:8:2d::begin().cell_index 0
+DEAL:8:2d::begin(0).cell_index 0
+DEAL:8:2d::begin(1)==end(1)? 1
+DEAL:8:2d::subdomainid = 4294967294
+
+
+DEAL:9:2d::proc 9, n levels 1
+DEAL:9:2d::proc 9, n gobal levels 2
+DEAL:9:2d::begin().cell_index 0
+DEAL:9:2d::begin(0).cell_index 0
+DEAL:9:2d::begin(1)==end(1)? 1
+DEAL:9:2d::subdomainid = 4294967294
+
index 4c6d1f374be940405a22c564ce0adddbfa45d6f3..377ec968f76c58f18587d05d9062bdbadc3f7ea9 100644 (file)
@@ -8,3 +8,11 @@ DEAL:0:2d::begin(1)==end(1)? 0
 DEAL:0:2d::subdomainid = 0
 DEAL:0:2d::Checksum: 167510149
 DEAL:0:2d::OK
+
+DEAL:1:2d::proc 1, n levels 1
+DEAL:1:2d::proc 1, n gobal levels 2
+DEAL:1:2d::begin().cell_index 0
+DEAL:1:2d::begin(0).cell_index 0
+DEAL:1:2d::begin(1)==end(1)? 1
+DEAL:1:2d::subdomainid = 4294967294
+
index 106d06a0d2f1e1d2ade074c1ad3c034362363fb2..8f59b65bd96ff7c17a93b2547d849b6e93bdb87c 100644 (file)
@@ -1,5 +1,34 @@
 
+DEAL:0:2d::#cells = 4
+DEAL:0:2d::proc 0, n levels 2
+DEAL:0:2d::proc 0, n gobal levels 2
+DEAL:0:2d::begin().cell_index 0
+DEAL:0:2d::begin(0).cell_index 0
+DEAL:0:2d::begin(1)==end(1)? 0
 DEAL:0:2d::subdomainid = 0
-DEAL:0:2d::#cells = 29035
-DEAL:0:2d::Checksum: 1364131841
+DEAL:0:2d::Checksum: 167510149
 DEAL:0:2d::OK
+
+DEAL:1:2d::proc 1, n levels 1
+DEAL:1:2d::proc 1, n gobal levels 2
+DEAL:1:2d::begin().cell_index 0
+DEAL:1:2d::begin(0).cell_index 0
+DEAL:1:2d::begin(1)==end(1)? 1
+DEAL:1:2d::subdomainid = 4294967294
+
+
+DEAL:2:2d::proc 2, n levels 1
+DEAL:2:2d::proc 2, n gobal levels 2
+DEAL:2:2d::begin().cell_index 0
+DEAL:2:2d::begin(0).cell_index 0
+DEAL:2:2d::begin(1)==end(1)? 1
+DEAL:2:2d::subdomainid = 4294967294
+
+
+DEAL:3:2d::proc 3, n levels 1
+DEAL:3:2d::proc 3, n gobal levels 2
+DEAL:3:2d::begin().cell_index 0
+DEAL:3:2d::begin(0).cell_index 0
+DEAL:3:2d::begin(1)==end(1)? 1
+DEAL:3:2d::subdomainid = 4294967294
+

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.