Commit 56ed1d13 authored by Steffen Müthing's avatar Steffen Müthing

[Cleanup] Add MPI_2 guard to backported commit dea4e7d0

parent 55babdff
......@@ -1012,8 +1012,14 @@ namespace Dune
// Create data type
MPI_Datatype* type = &( send ? messageTypes[process->first].first : messageTypes[process->first].second);
#if MPI_2
MPI_Type_create_hindexed(info.elements, info.length, info.displ,
MPITraits<typename CommPolicy<V>::IndexedType>::getType(), type);
#else
MPI_Type_hindexed(info.elements, info.length, info.displ,
MPITraits<typename CommPolicy<V>::IndexedType>::getType(),
type);
#endif
MPI_Type_commit(type);
// Deallocate memory
info.free();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment