From 1e7062e6b267cbd6147eaedf74ed343cd91b51ab Mon Sep 17 00:00:00 2001 From: MuQun Yang Date: Tue, 30 Aug 2005 11:39:00 -0500 Subject: [svn-r11316] Purpose: bug fix for collective chunk IO Description: When using calloc to allocate an MPI datatype, one should use sizeof(MPI datatype) instead of sizeof(equalivent non-MPI datatype) to assign the value, this causes the problem at 64-bit platforms such IRIX65 and AIX 5.1. Solution: Correct it. Platforms tested: AIX 5.1 and IRIX6.5(at NCAR). Misc. update: --- src/H5Smpio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/H5Smpio.c b/src/H5Smpio.c index 7105ef9..9cbc8ec 100644 --- a/src/H5Smpio.c +++ b/src/H5Smpio.c @@ -621,8 +621,8 @@ static herr_t H5S_obtain_datatype(const hsize_t size[], #else blocklen = (int *)HDcalloc((size_t)outercount,sizeof(int)); - disp = (MPI_Aint *)HDcalloc((size_t)outercount,sizeof(int)); - inner_type = (MPI_Datatype *)HDcalloc((size_t)outercount,sizeof(int)); + disp = (MPI_Aint *)HDcalloc((size_t)outercount,sizeof(MPI_Aint)); + inner_type = (MPI_Datatype *)HDcalloc((size_t)outercount,sizeof(MPI_Datatype)); #endif -- cgit v0.12