From 95369b9b0017feecd39d62b44065b09e1629a4d8 Mon Sep 17 00:00:00 2001 From: Denis Davydov Date: Tue, 20 Mar 2018 14:45:36 +0100 Subject: [PATCH] minor --- include/deal.II/base/mpi.templates.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/deal.II/base/mpi.templates.h b/include/deal.II/base/mpi.templates.h index 09473cf03d..f970bac3fb 100644 --- a/include/deal.II/base/mpi.templates.h +++ b/include/deal.II/base/mpi.templates.h @@ -123,13 +123,13 @@ namespace Utilities #ifdef DEBUG { const unsigned int rank = this_mpi_process(mpi_communicator); - const int size = values.size(); - int size_min = 0; - int size_max = 0; + unsigned int size = values.size(); + unsigned int size_min = 0; + unsigned int size_max = 0; int ierr2 = 0; - ierr2 = MPI_Reduce(&size, &size_min, 1, MPI_INT, MPI_MIN, 0, mpi_communicator); + ierr2 = MPI_Reduce(&size, &size_min, 1, MPI_UNSIGNED, MPI_MIN, 0, mpi_communicator); AssertThrowMPI(ierr2); - ierr2 = MPI_Reduce(&size, &size_max, 1, MPI_INT, MPI_MAX, 0, mpi_communicator); + ierr2 = MPI_Reduce(&size, &size_max, 1, MPI_UNSIGNED, MPI_MAX, 0, mpi_communicator); AssertThrowMPI(ierr2); if (rank==0) Assert (size_min == size_max, ExcMessage("values has different size across MPI processes.")); -- 2.39.5