Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix DS examples #307

Merged
merged 2 commits into from
Feb 4, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion hl/examples/ex_ds1.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,11 @@ main(void)
if (H5DSattach_scale(did, dsid, DIM1) < 0)
goto out;

/* close DS id */
/* close DS ids */
if (H5Dclose(dsid) < 0)
goto out;
if (H5Dclose(did) < 0)
goto out;

/* close file */
H5Fclose(fid);
Expand Down
3 changes: 2 additions & 1 deletion hl/fortran/examples/ex_ds1.f90
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,9 @@ PROGRAM example_ds

WRITE(*,'(/,5X,A,I0,2A,/)') 'Dimension Scale Label for dimension ', DIM2, ' is ... ', label(1:label_len)

! close DS id
! close DS ids
CALL H5Dclose_f(dsid, err)
CALL H5Dclose_f(did, err)

! close file
CALL H5Fclose_f(fid, err)
Expand Down