Skip to content
Snippets Groups Projects

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

Merged Marco Agnese requested to merge remove_mpi_type_hindexed_warning into master
+ 2
3
Compare changes
  • Side-by-side
  • Inline
@@ -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();
Loading