summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElena Pourmal <epourmal@hdfgroup.org>2001-06-27 22:06:59 (GMT)
committerElena Pourmal <epourmal@hdfgroup.org>2001-06-27 22:06:59 (GMT)
commit378dd7cd7466c476812ced167e92722c0a908b9f (patch)
treeca7ebdabb91d1ff08fbf14990b4b33502015eb24
parent66f2ea839eddbd433dbbb5d8728ea78753b6cca5 (diff)
downloadhdf5-378dd7cd7466c476812ced167e92722c0a908b9f.zip
hdf5-378dd7cd7466c476812ced167e92722c0a908b9f.tar.gz
hdf5-378dd7cd7466c476812ced167e92722c0a908b9f.tar.bz2
[svn-r4074]
Purpose: F90 || port Description: Updated test to use new h5dread/write_f functions Platforms tested: NERSC IBM SP (gseaborg)
-rw-r--r--fortran/testpar/thyperslab_wr.f907
1 files changed, 5 insertions, 2 deletions
diff --git a/fortran/testpar/thyperslab_wr.f90 b/fortran/testpar/thyperslab_wr.f90
index 9375a11..b6da747 100644
--- a/fortran/testpar/thyperslab_wr.f90
+++ b/fortran/testpar/thyperslab_wr.f90
@@ -23,6 +23,7 @@
INTEGER, ALLOCATABLE :: data_out (:,:) ! Buffer to store data
INTEGER :: rank = 2 ! Dataset rank
INTEGER :: i, j
+ INTEGER :: dims(7)
INTEGER :: total_error, error ! Error flags
!
@@ -85,6 +86,8 @@
! Initialize data buffer with trivial data.
!
ALLOCATE ( data(count(1),count(2)))
+ dims(1) = count(1)
+ dims(2) = count(2)
data = mpi_rank + 10
!
! Create property list for collective dataset write
@@ -97,7 +100,7 @@
!
! Write the dataset collectively.
!
- CALL h5dwrite_f(dset_id, H5T_NATIVE_INTEGER, data, error, &
+ CALL h5dwrite_f(dset_id, H5T_NATIVE_INTEGER, data, dims, error, &
file_space_id = filespace, mem_space_id = memspace, xfer_prp = plxfer_id)
CALL check("h5dwrite_f", error, total_error)
!
@@ -178,7 +181,7 @@
!
! Write the dataset collectively.
!
- CALL h5dread_f(dset_id, H5T_NATIVE_INTEGER, data_out, error, &
+ CALL h5dread_f(dset_id, H5T_NATIVE_INTEGER, data_out, dims, error, &
file_space_id = filespace, mem_space_id = memspace, xfer_prp = plxfer_id)
CALL check("h5dread_f", error, total_error)
do j = 1, count(2)