From 55babdffc76ad0c86cc6c285b15c762a948343be Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Christoph=20Gr=C3=BCninger?= <gruenich@dune-project.org>
Date: Tue, 19 Jan 2016 21:14:50 +0000
Subject: [PATCH] Merge branch 'remove_mpi_type_hindexed_warning' into 'master'
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

feature/use MPI_Type_create_hindexed instead of MPI_Type_hindexed which is deprecated for MPI>=2

:)

See merge request !29
(cherry picked from commit dea4e7d07695ff5dbe0adc1fd49d84bb189b23bd)

Signed-off-by: Steffen Müthing <muething@dune-project.org>
---
 dune/common/parallel/communicator.hh | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/dune/common/parallel/communicator.hh b/dune/common/parallel/communicator.hh
index d5225807c..1baf9070c 100644
--- a/dune/common/parallel/communicator.hh
+++ b/dune/common/parallel/communicator.hh
@@ -1012,9 +1012,8 @@ namespace Dune
 
       // Create data type
       MPI_Datatype* type = &( send ? messageTypes[process->first].first : messageTypes[process->first].second);
-      MPI_Type_hindexed(info.elements, info.length, info.displ,
-                        MPITraits<typename CommPolicy<V>::IndexedType>::getType(),
-                        type);
+      MPI_Type_create_hindexed(info.elements, info.length, info.displ,
+                               MPITraits<typename CommPolicy<V>::IndexedType>::getType(), type);
       MPI_Type_commit(type);
       // Deallocate memory
       info.free();
-- 
GitLab