Skip to content
Snippets Groups Projects
Commit 8212660d authored by Marco Agnese's avatar Marco Agnese Committed by Christoph Grüninger
Browse files

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

parent 47255e4f
Branches
Tags
1 merge request!29feature/use MPI_Type_create_hindexed instead of MPI_Type_hindexed which is deprecated for MPI>=2
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment