From: Daniel Arndt Date: Thu, 6 Sep 2018 20:30:53 +0000 (+0200) Subject: Avoid warning about unused variable in compute_n_point_to_point_communications X-Git-Tag: v9.1.0-rc1~743^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F7157%2Fhead;p=dealii.git Avoid warning about unused variable in compute_n_point_to_point_communications --- diff --git a/source/base/mpi.cc b/source/base/mpi.cc index 2ecf9fcd5c..9673d29bcd 100644 --- a/source/base/mpi.cc +++ b/source/base/mpi.cc @@ -299,14 +299,13 @@ namespace Utilities const MPI_Comm & mpi_comm, const std::vector &destinations) { - const unsigned int myid = Utilities::MPI::this_mpi_process(mpi_comm); const unsigned int n_procs = Utilities::MPI::n_mpi_processes(mpi_comm); for (unsigned int i = 0; i < destinations.size(); ++i) { Assert(destinations[i] < n_procs, ExcIndexRange(destinations[i], 0, n_procs)); - Assert(destinations[i] != myid, + Assert(destinations[i] != Utilities::MPI::this_mpi_process(mpi_comm), ExcMessage( "There is no point in communicating with ourselves.")); }