[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:
This commit is contained in:
MuQun Yang 2005-08-30 11:39:00 -05:00
parent 336716e427
commit 1e7062e6b2

View File

@ -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