]> https://gitweb.dealii.org/ - dealii.git/commitdiff
minor 6049/head
authorDenis Davydov <davydden@gmail.com>
Tue, 20 Mar 2018 13:45:36 +0000 (14:45 +0100)
committerDenis Davydov <davydden@gmail.com>
Tue, 20 Mar 2018 13:45:36 +0000 (14:45 +0100)
include/deal.II/base/mpi.templates.h

index 09473cf03d2d68fa2c9bca1516b3c429c059e31f..f970bac3fbdfd7e3601cd13dd7b0d2fa9898312f 100644 (file)
@@ -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."));

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.