From f8e77a65ec514e5469de14dd8b5ce70f75597c21 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Wed, 30 May 2018 22:52:29 +0200 Subject: [PATCH] Alternative solution to mpi/collective_02_dealii_vector --- tests/mpi/collective_02_dealii_vector.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/mpi/collective_02_dealii_vector.cc b/tests/mpi/collective_02_dealii_vector.cc index 5f40a01031..5db7d3da39 100644 --- a/tests/mpi/collective_02_dealii_vector.cc +++ b/tests/mpi/collective_02_dealii_vector.cc @@ -26,8 +26,8 @@ void test() { - unsigned int myid = Utilities::MPI::this_mpi_process(MPI_COMM_WORLD); - const int numprocs = Utilities::MPI::n_mpi_processes(MPI_COMM_WORLD); + unsigned int myid = Utilities::MPI::this_mpi_process(MPI_COMM_WORLD); + const unsigned int numprocs = Utilities::MPI::n_mpi_processes(MPI_COMM_WORLD); { Vector values(2); @@ -35,8 +35,8 @@ test() values[1] = 2; Vector sums(2); Utilities::MPI::sum(values, MPI_COMM_WORLD, sums); - Assert(sums[0] == numprocs, ExcInternalError()); - Assert(sums[1] == 2 * numprocs, ExcInternalError()); + Assert((unsigned int)sums[0] == numprocs, ExcInternalError()); + Assert((unsigned int)sums[1] == 2 * numprocs, ExcInternalError()); if (myid == 0) deallog << sums[0] << ' ' << sums[1] << std::endl; -- 2.39.5