Skip to content

Commit

Permalink
Fix link error on clang17/gfortran13/macOS-13 (HDFGroup#3666) (HDFGro…
Browse files Browse the repository at this point in the history
  • Loading branch information
hyoklee authored and brtnfld committed Oct 16, 2023
1 parent 0d4a06e commit 1c74605
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions fortran/examples/ph5example.f90
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
PROGRAM DATASET

USE HDF5 ! This module contains all necessary modules
USE MPI

IMPLICIT NONE

INCLUDE 'mpif.h'
CHARACTER(LEN=10), PARAMETER :: default_fname = "sds.h5" ! Default name
CHARACTER(LEN=8), PARAMETER :: dsetname = "IntArray" ! Dataset name

Expand Down Expand Up @@ -72,10 +72,8 @@ PROGRAM DATASET
CALL h5pset_fapl_mpio_f(plist_id, comm, info, error)

!
! Figure out the filename to use. If your system does not support
! getenv, comment that statement with this,
! filename = ""
CALL getenv("HDF5_PARAPREFIX", filename)
! Figure out the filename to use.
CALL get_environment_variable("HDF5_PARAPREFIX", filename)
fnamelen = LEN_TRIM(filename)
if ( fnamelen == 0 ) then
filename = default_fname
Expand Down

0 comments on commit 1c74605

Please sign in to comment.