From 595f25a34a76a3e467bf1bd12bc8d2ee0e8070e8 Mon Sep 17 00:00:00 2001 From: degomme Date: Fri, 5 Oct 2012 12:05:14 +0200 Subject: [PATCH] bug with MPI_Type_contiguous --- src/smpi/smpi_mpi_dt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/smpi/smpi_mpi_dt.c b/src/smpi/smpi_mpi_dt.c index 5467a330a6..1561ddd5b1 100644 --- a/src/smpi/smpi_mpi_dt.c +++ b/src/smpi/smpi_mpi_dt.c @@ -276,7 +276,7 @@ int smpi_datatype_contiguous(int count, MPI_Datatype old_type, MPI_Datatype* new retval = MPI_ERR_TYPE; } else { smpi_datatype_create(new_type, count * - smpi_datatype_size(old_type),1,NULL, DT_FLAG_CONTIGUOUS); + smpi_datatype_size(old_type),0,NULL, DT_FLAG_CONTIGUOUS); retval=MPI_SUCCESS; } return retval; -- 2.20.1