Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
returning the correct value is better, weirdly.
authorAugustin Degomme <adegomme@gmail.com>
Sun, 7 Jun 2020 15:08:04 +0000 (17:08 +0200)
committerAugustin Degomme <adegomme@gmail.com>
Sun, 7 Jun 2020 15:08:04 +0000 (17:08 +0200)
src/smpi/mpi/smpi_datatype_derived.cpp

index 55deb44..fb3adda 100644 (file)
@@ -44,7 +44,7 @@ Datatype_contents::~Datatype_contents(){
 Type_Contiguous::Type_Contiguous(int size, MPI_Aint lb, MPI_Aint ub, int flags, int block_count, MPI_Datatype old_type)
     : Datatype(size, lb, ub, flags), block_count_(block_count), old_type_(old_type)
 {
-  contents_ = new Datatype_contents(MPI_COMBINER_CONTIGUOUS, 1, &size, 0, nullptr, 1, &old_type);
+  contents_ = new Datatype_contents(MPI_COMBINER_CONTIGUOUS, 1, &block_count, 0, nullptr, 1, &old_type);
   old_type_->ref();
 }