From: David Wells Date: Sat, 2 Feb 2019 15:00:38 +0000 (-0500) Subject: Avoid calling a deprecated MPI function. X-Git-Tag: v9.1.0-rc1~376^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F7677%2Fhead;p=dealii.git Avoid calling a deprecated MPI function. This was deprecated a long time ago (1996) and is not present in the latest version of openMPI (4.0): see https://www.open-mpi.org/faq/?category=mpi-removed Credit goes to Pratik Nayak for finding this issue. --- diff --git a/source/base/mpi.cc b/source/base/mpi.cc index bd1f7f9846..b8cd45e7c2 100644 --- a/source/base/mpi.cc +++ b/source/base/mpi.cc @@ -448,7 +448,7 @@ namespace Utilities MPI_Aint displacements[] = {0, offsetof(MinMaxAvg, min_index)}; MPI_Datatype types[] = {MPI_DOUBLE, MPI_INT}; - ierr = MPI_Type_struct(2, lengths, displacements, types, &type); + ierr = MPI_Type_create_struct(2, lengths, displacements, types, &type); AssertThrowMPI(ierr); ierr = MPI_Type_commit(&type);