From 5ea43db5da444ec2a0d2936b4395e2487b641e3c Mon Sep 17 00:00:00 2001 From: Augustin Degomme Date: Sun, 7 Jun 2020 17:08:04 +0200 Subject: [PATCH] returning the correct value is better, weirdly. --- src/smpi/mpi/smpi_datatype_derived.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/smpi/mpi/smpi_datatype_derived.cpp b/src/smpi/mpi/smpi_datatype_derived.cpp index 55deb445a2..fb3addadc2 100644 --- a/src/smpi/mpi/smpi_datatype_derived.cpp +++ b/src/smpi/mpi/smpi_datatype_derived.cpp @@ -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(); } -- 2.20.1