Skip to content

Commit

Permalink
Prevent HDF5 read routines terminating code if HDF5 is not available
Browse files Browse the repository at this point in the history
  • Loading branch information
jchelly committed Jun 29, 2023
1 parent 8194bb4 commit 4fcbe3e
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 15 deletions.
5 changes: 0 additions & 5 deletions main/src/gadget_eagle_reader.F90
Original file line number Diff line number Diff line change
Expand Up @@ -312,11 +312,6 @@ type(result_type) function gadget_eagle_open(fname, isnap, rinfo)
gadget_eagle_open%success = .true.

#else
! Should never get here because menu option is greyed out if HDF5 not
! available
call terminate('gadget_eagle_reader - Code was compiled without HDF5 support')

! Stop compiler complaining about return value not being set
gadget_eagle_open%success = .false.
gadget_eagle_open%string = "Compiled without HDF5 support"
isnap = 0
Expand Down
5 changes: 0 additions & 5 deletions main/src/gadget_hdf5_reader.F90
Original file line number Diff line number Diff line change
Expand Up @@ -423,11 +423,6 @@ type(result_type) function gadget_hdf5_open(fname, isnap, rinfo)
gadget_hdf5_open%success = .true.

#else
! Should never get here because menu option is greyed out if HDF5 not
! available
call terminate('gadget_hdf5_reader - Code was compiled without HDF5 support')

! Stop compiler complaining about return value not being set
gadget_hdf5_open%success = .false.
gadget_hdf5_open%string = "Compiled without HDF5 support"
isnap = 0
Expand Down
5 changes: 0 additions & 5 deletions main/src/swift_reader.F90
Original file line number Diff line number Diff line change
Expand Up @@ -362,11 +362,6 @@ type(result_type) function swift_open(fname, isnap, rinfo)
deallocate(npfile)

#else
! Should never get here because menu option is greyed out if HDF5 not
! available
call terminate('swift_reader - Code was compiled without HDF5 support')

! Stop compiler complaining about return value not being set
swift_open%success = .false.
swift_open%string = "Compiled without HDF5 support"
isnap = 0
Expand Down

0 comments on commit 4fcbe3e

Please sign in to comment.