]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid calling a deprecated MPI function. 7677/head
authorDavid Wells <drwells@email.unc.edu>
Sat, 2 Feb 2019 15:00:38 +0000 (10:00 -0500)
committerDavid Wells <drwells@email.unc.edu>
Sat, 2 Feb 2019 15:00:38 +0000 (10:00 -0500)
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.

source/base/mpi.cc

index bd1f7f9846a2f905ccc45396545c55f3d9e6373d..b8cd45e7c26ac8e783805f25a6bd34cfdff8f5d4 100644 (file)
@@ -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);

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.