From: degomme Date: Fri, 5 Oct 2012 10:05:14 +0000 (+0200) Subject: bug with MPI_Type_contiguous X-Git-Tag: v3_8~138 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/595f25a34a76a3e467bf1bd12bc8d2ee0e8070e8 bug with MPI_Type_contiguous --- 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;