From: bangerth Date: Mon, 26 Sep 2011 02:36:04 +0000 (+0000) Subject: Make sure the test does not become trivial and obvious when using just one processor. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df312fb1f17b8916ce99d91501e5853eb98ada2f;p=dealii-svn.git Make sure the test does not become trivial and obvious when using just one processor. git-svn-id: https://svn.dealii.org/trunk@24414 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/mpi/collective_02.cc b/tests/mpi/collective_02.cc index 1948f04903..386b1be0ae 100644 --- a/tests/mpi/collective_02.cc +++ b/tests/mpi/collective_02.cc @@ -27,19 +27,19 @@ void test() int int_sum, uint_sum, double_sum, float_sum; int_sum = - Utilities::System::calculate_collective_mpi_sum(myid, + Utilities::System::calculate_collective_mpi_sum(myid+1, MPI_COMM_WORLD); uint_sum = - Utilities::System::calculate_collective_mpi_sum(myid, + Utilities::System::calculate_collective_mpi_sum(myid+1, MPI_COMM_WORLD); float_sum = - Utilities::System::calculate_collective_mpi_sum(myid, + Utilities::System::calculate_collective_mpi_sum(myid+1, MPI_COMM_WORLD); double_sum = - Utilities::System::calculate_collective_mpi_sum(myid, + Utilities::System::calculate_collective_mpi_sum(myid+1, MPI_COMM_WORLD); if (myid==0) diff --git a/tests/mpi/collective_02/ncpu_1/cmp/generic b/tests/mpi/collective_02/ncpu_1/cmp/generic index 973f282920..4723d36fe0 100644 --- a/tests/mpi/collective_02/ncpu_1/cmp/generic +++ b/tests/mpi/collective_02/ncpu_1/cmp/generic @@ -1,2 +1,2 @@ -DEAL:mpi::0 0 0 0 +DEAL:mpi::1 1 1 1 diff --git a/tests/mpi/collective_02/ncpu_10/cmp/generic b/tests/mpi/collective_02/ncpu_10/cmp/generic index 8e5a42cfe2..30bc0673c1 100644 --- a/tests/mpi/collective_02/ncpu_10/cmp/generic +++ b/tests/mpi/collective_02/ncpu_10/cmp/generic @@ -1,2 +1,2 @@ -DEAL:mpi::45 45 45 45 +DEAL:mpi::55 55 55 55 diff --git a/tests/mpi/collective_02/ncpu_4/cmp/generic b/tests/mpi/collective_02/ncpu_4/cmp/generic index 58299a0121..c72ae8e67c 100644 --- a/tests/mpi/collective_02/ncpu_4/cmp/generic +++ b/tests/mpi/collective_02/ncpu_4/cmp/generic @@ -1,2 +1,2 @@ -DEAL:mpi::6 6 6 6 +DEAL:mpi::10 10 10 10