summaryrefslogtreecommitdiffstats
path: root/fortran/examples/grpit.f90
diff options
context:
space:
mode:
authorElena Pourmal <epourmal@hdfgroup.org>2001-06-21 14:54:50 (GMT)
committerElena Pourmal <epourmal@hdfgroup.org>2001-06-21 14:54:50 (GMT)
commite66998d4dd00bcd2064559aa972ad6b4763fa65b (patch)
treefa2c970e6f035ed6d7edfc0ebda1658859ebc46b /fortran/examples/grpit.f90
parentef31e2929dc496a32515a8c11cef8ecce6c746e2 (diff)
downloadhdf5-e66998d4dd00bcd2064559aa972ad6b4763fa65b.zip
hdf5-e66998d4dd00bcd2064559aa972ad6b4763fa65b.tar.gz
hdf5-e66998d4dd00bcd2064559aa972ad6b4763fa65b.tar.bz2
[svn-r4027]
Purpose: Windows port Description: Modified examples source code to reflect the changes in the read/write APIs Platforms tested: DEC UNIX, Linux
Diffstat (limited to 'fortran/examples/grpit.f90')
-rw-r--r--fortran/examples/grpit.f9010
1 files changed, 8 insertions, 2 deletions
diff --git a/fortran/examples/grpit.f90 b/fortran/examples/grpit.f90
index 3aff2ad..3616eca 100644
--- a/fortran/examples/grpit.f90
+++ b/fortran/examples/grpit.f90
@@ -33,9 +33,11 @@
INTEGER, DIMENSION(3,3) :: dset1_data ! Arrays to hold data
INTEGER, DIMENSION(2,10) :: dset2_data !
+
INTEGER(HSIZE_T), DIMENSION(2) :: dims1 = (/3,3/) ! Dataset dimensions
INTEGER(HSIZE_T), DIMENSION(2) :: dims2 = (/2,10/)!
INTEGER :: rank = 2 ! Datasets rank
+ INTEGER, DIMENSION(7) :: data_dims
!
! Initialize dset1_data array.
@@ -90,7 +92,9 @@
!
! Write the first dataset.
!
- CALL h5dwrite_f(dataset1_id, H5T_NATIVE_INTEGER, dset1_data, error)
+ data_dims(1) = 3
+ data_dims(2) = 3
+ CALL h5dwrite_f(dataset1_id, H5T_NATIVE_INTEGER, dset1_data, data_dims, error)
!
! Create the data space for the second dataset.
@@ -106,7 +110,9 @@
!
! Write the second dataset
!
- CALL h5dwrite_f(dataset2_id, H5T_NATIVE_INTEGER, dset2_data, error)
+ data_dims(1) = 2
+ data_dims(2) = 10
+ CALL h5dwrite_f(dataset2_id, H5T_NATIVE_INTEGER, dset2_data, data_dims, error)
!
! Get number of members in the root group.