summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMuQun Yang <ymuqun@hdfgroup.org>2005-08-30 16:39:00 (GMT)
committerMuQun Yang <ymuqun@hdfgroup.org>2005-08-30 16:39:00 (GMT)
commit1e7062e6b267cbd6147eaedf74ed343cd91b51ab (patch)
tree8b7495ae7b26187c9d3c34bd72656074db7baf44
parent336716e427cf7fd7f8f11affbc95bee09d7b10bb (diff)
downloadhdf5-1e7062e6b267cbd6147eaedf74ed343cd91b51ab.zip
hdf5-1e7062e6b267cbd6147eaedf74ed343cd91b51ab.tar.gz
hdf5-1e7062e6b267cbd6147eaedf74ed343cd91b51ab.tar.bz2
[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:
-rw-r--r--src/H5Smpio.c4
1 files 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