summaryrefslogtreecommitdiffstats
path: root/src/H5FDmpio.c
diff options
context:
space:
mode:
authorBill Wendling <wendling@ncsa.uiuc.edu>2001-12-18 18:35:23 (GMT)
committerBill Wendling <wendling@ncsa.uiuc.edu>2001-12-18 18:35:23 (GMT)
commit2b629eaceb37a14a9e33dafa6a2a50765fd7d629 (patch)
tree2e223abccde67013e9e00dc0c984ced2ed0d7b89 /src/H5FDmpio.c
parentad04fdd3a713b0ef9018ff556871b83de518b107 (diff)
downloadhdf5-2b629eaceb37a14a9e33dafa6a2a50765fd7d629.zip
hdf5-2b629eaceb37a14a9e33dafa6a2a50765fd7d629.tar.gz
hdf5-2b629eaceb37a14a9e33dafa6a2a50765fd7d629.tar.bz2
[svn-r4732]
Purpose: Bug Fix Description: Committing the changes in the MPI/IO stuff so that parallel HDF5 will work on HP-UX. It seems that on HP-UX, the MPI_Status variable needs to be initialized to 0 for it to work (i.e., in some other MPI calls, if there's garbage in the MPI_Status variable, then it will barf). Solution: Initialized to 0. Platforms tested: HP-UX parallel, Linux.
Diffstat (limited to 'src/H5FDmpio.c')
-rw-r--r--src/H5FDmpio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/H5FDmpio.c b/src/H5FDmpio.c
index 437d18f..0888924 100644
--- a/src/H5FDmpio.c
+++ b/src/H5FDmpio.c
@@ -1091,7 +1091,7 @@ H5FD_mpio_read(H5FD_t *_file, H5FD_mem_t UNUSED type, hid_t dxpl_id, haddr_t add
const H5FD_mpio_dxpl_t *dx=NULL;
H5FD_mpio_dxpl_t _dx;
MPI_Offset mpi_off, mpi_disp;
- MPI_Status mpi_stat;
+ MPI_Status mpi_stat = {0};
MPI_Datatype buf_type, file_type;
int size_i, bytes_read, n;
int use_types_this_time, used_types_last_time;
@@ -1347,7 +1347,7 @@ H5FD_mpio_write(H5FD_t *_file, H5FD_mem_t UNUSED type, hid_t dxpl_id, haddr_t ad
const H5FD_mpio_dxpl_t *dx=NULL;
H5FD_mpio_dxpl_t _dx;
MPI_Offset mpi_off, mpi_disp;
- MPI_Status mpi_stat;
+ MPI_Status mpi_stat = {0};
MPI_Datatype buf_type, file_type;
int size_i, bytes_written;
int mpi_rank=-1;
@@ -1552,7 +1552,7 @@ H5FD_mpio_flush(H5FD_t *_file)
H5FD_mpio_t *file = (H5FD_mpio_t*)_file;
int mpi_rank=-1;
uint8_t byte=0;
- MPI_Status mpi_stat;
+ MPI_Status mpi_stat = {0};
MPI_Offset mpi_off;
FUNC_ENTER(H5FD_mpio_flush, FAIL);