]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Make sure the test does not become trivial and obvious when using just one processor.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 26 Sep 2011 02:36:04 +0000 (02:36 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 26 Sep 2011 02:36:04 +0000 (02:36 +0000)
git-svn-id: https://svn.dealii.org/trunk@24414 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 1948f04903259ad29f64c959907db928e18b5985..386b1be0ae1f72e5621b17450f908593a42366d3 100644 (file)
@@ -27,19 +27,19 @@ void test()
   int int_sum, uint_sum, double_sum, float_sum;
   int_sum
     =
-    Utilities::System::calculate_collective_mpi_sum<int>(myid,
+    Utilities::System::calculate_collective_mpi_sum<int>(myid+1,
                                                         MPI_COMM_WORLD);
   uint_sum
     =
-    Utilities::System::calculate_collective_mpi_sum<unsigned int>(myid,
+    Utilities::System::calculate_collective_mpi_sum<unsigned int>(myid+1,
                                                                  MPI_COMM_WORLD);
   float_sum
     =
-    Utilities::System::calculate_collective_mpi_sum<float>(myid,
+    Utilities::System::calculate_collective_mpi_sum<float>(myid+1,
                                                           MPI_COMM_WORLD);
   double_sum
     =
-    Utilities::System::calculate_collective_mpi_sum<double>(myid,
+    Utilities::System::calculate_collective_mpi_sum<double>(myid+1,
                                                            MPI_COMM_WORLD);
 
   if (myid==0)
index 973f2829208ddc0c289e3b4c1242a3b03995ce04..4723d36fe08847760ab08b843371d0919275757e 100644 (file)
@@ -1,2 +1,2 @@
 
-DEAL:mpi::0 0 0 0
+DEAL:mpi::1 1 1 1
index 8e5a42cfe2b1278ac18587c8d11315a72d60690a..30bc0673c1402937aa1f22ac462662605f787965 100644 (file)
@@ -1,2 +1,2 @@
 
-DEAL:mpi::45 45 45 45
+DEAL:mpi::55 55 55 55
index 58299a012144fde75437c730c9163ecdba83c4dc..c72ae8e67c0018ffd2e5d100661ef571a543e86f 100644 (file)
@@ -1,2 +1,2 @@
 
-DEAL:mpi::6 6 6 6
+DEAL:mpi::10 10 10 10

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.