]> https://gitweb.dealii.org/ - dealii.git/commitdiff
cleanup test and make it pass.
authorTimo Heister <timo.heister@gmail.com>
Tue, 22 Feb 2011 23:48:32 +0000 (23:48 +0000)
committerTimo Heister <timo.heister@gmail.com>
Tue, 22 Feb 2011 23:48:32 +0000 (23:48 +0000)
git-svn-id: https://svn.dealii.org/trunk@23423 0785d39b-7218-0410-832d-ea1e28bc413d

tests/mpi/petsc_01.cc
tests/mpi/petsc_01/ncpu_1/cmp/generic
tests/mpi/petsc_01/ncpu_10/cmp/generic
tests/mpi/petsc_01/ncpu_4/cmp/generic

index 6623b24334b0f1662240c385e8c08cf29230fc78..4985e311691702e79842796446a778718d5ebf3a 100644 (file)
 
 void test()
 {
-  
-
   unsigned int myid = Utilities::System::get_this_mpi_process (MPI_COMM_WORLD);
-  const unsigned int numprocs = Utilities::System::get_n_mpi_processes (MPI_COMM_WORLD);
+  unsigned int numprocs = Utilities::System::get_n_mpi_processes (MPI_COMM_WORLD);
 
   if (myid==0)
     deallog << "Running on " << numprocs << " CPU(s)." << std::endl;
 
-
   CompressedSimpleSparsityPattern csp(2*numprocs);
   for (unsigned int i=0;i<numprocs*2;++i)
     csp.add(i,i);
@@ -88,8 +85,8 @@ int main(int argc, char *argv[])
   if (Utilities::System::get_this_mpi_process (MPI_COMM_WORLD) == 0)
     {
       std::ofstream logfile(output_file_for_mpi("petsc_01").c_str());
-//      deallog.attach(logfile);
-//      deallog.depth_console(0);
+      deallog.attach(logfile);
+      deallog.depth_console(0);
       deallog.threshold_double(1.e-10);
 
       test();
index 588f4ae9eb07fed99eee86889ad1944eb0ad4fdd..76a3add3842bc150741eed689cbe64512ec6e151 100644 (file)
@@ -1,5 +1,4 @@
 
-DEAL:mpi::Running on 3 CPU(s).
-DEAL:mpi::got message '1' from CPU 2!
-DEAL:mpi::got message '2' from CPU 3!
-DEAL:mpi::done
+DEAL::Running on 1 CPU(s).
+DEAL::2nd try
+DEAL::done
index 30b5ea49cd2e28998b45afc6bd0a670b48d31c68..729abc0fba7903ff33b6d8369b612510315158b3 100644 (file)
@@ -1,12 +1,4 @@
 
-DEAL:mpi::Running on 10 CPU(s).
-DEAL:mpi::got message '1' from CPU 2!
-DEAL:mpi::got message '2' from CPU 3!
-DEAL:mpi::got message '3' from CPU 4!
-DEAL:mpi::got message '4' from CPU 5!
-DEAL:mpi::got message '5' from CPU 6!
-DEAL:mpi::got message '6' from CPU 7!
-DEAL:mpi::got message '7' from CPU 8!
-DEAL:mpi::got message '8' from CPU 9!
-DEAL:mpi::got message '9' from CPU 10!
-DEAL:mpi::done
+DEAL::Running on 10 CPU(s).
+DEAL::2nd try
+DEAL::done
index 8dcacbe8b3b09be8d0b3b397d8d5cccc04c04a51..25e315071a008ae0e56fb59ebef6fe37c9ca1da8 100644 (file)
@@ -1,6 +1,4 @@
 
-DEAL:mpi::Running on 4 CPU(s).
-DEAL:mpi::got message '1' from CPU 2!
-DEAL:mpi::got message '2' from CPU 3!
-DEAL:mpi::got message '3' from CPU 4!
-DEAL:mpi::done
+DEAL::Running on 4 CPU(s).
+DEAL::2nd try
+DEAL::done

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.