From a2373242bf651d5cf8de84586f30cd48f6401d89 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Thu, 6 Sep 2018 22:30:53 +0200 Subject: [PATCH] Avoid warning about unused variable in compute_n_point_to_point_communications --- source/base/mpi.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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.")); } -- 2.39.5