diff options
Diffstat (limited to 'fortran/examples/rwdsetexample.f90')
-rw-r--r-- | fortran/examples/rwdsetexample.f90 | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/fortran/examples/rwdsetexample.f90 b/fortran/examples/rwdsetexample.f90 index 3bc0ecb..b3cc424 100644 --- a/fortran/examples/rwdsetexample.f90 +++ b/fortran/examples/rwdsetexample.f90 @@ -22,6 +22,7 @@ INTEGER :: i, j INTEGER, DIMENSION(4,6) :: dset_data, data_out ! Data buffers + INTEGER, DIMENSION(7) :: data_dims ! ! Initialize the dset_data array. @@ -50,12 +51,14 @@ ! ! Write the dataset. ! - CALL h5dwrite_f(dset_id, H5T_NATIVE_INTEGER, dset_data, error) + data_dims(1) = 4 + data_dims(2) = 6 + CALL h5dwrite_f(dset_id, H5T_NATIVE_INTEGER, dset_data, data_dims, error) ! ! Read the dataset. ! - CALL h5dread_f(dset_id, H5T_NATIVE_INTEGER, data_out, error) + CALL h5dread_f(dset_id, H5T_NATIVE_INTEGER, data_out, data_dims, error) ! ! Close the dataset. |