Commit dea4e7d0 authored by Christoph Grüninger's avatar Christoph Grüninger

Merge branch 'remove_mpi_type_hindexed_warning' into 'master'

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

:)

See merge request !29
parents 47255e4f 8212660d
......@@ -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();
......
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