Skip to content

Commit

Permalink
destructor: suppress incorrect message
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Jul 18, 2021
1 parent 340d733 commit 4d3afbc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/interface.f90
Original file line number Diff line number Diff line change
Expand Up @@ -1124,6 +1124,8 @@ subroutine destructor(self)

type(hdf5_file), intent(inout) :: self

if (.not. self%is_open) return

print *, "auto-closing " // self%filename

call self%close()
Expand Down

0 comments on commit 4d3afbc

Please sign in to comment.