gfxgfx
 
Please login or register.

Login with username, password and session length
 
gfx gfx
gfx
1566 Posts in 517 Topics by 752 Members - Latest Member: zaikunzhang October 28, 2021, 12:56:38 AM
*
gfx* Home | Help | Search | Login | Register | gfx
gfx
Absoft User Forum  |  Archive  |  Additional Software & Libraries Archive  |  HDF5 and AWE
gfx
gfxgfx
 

Author Topic: HDF5 and AWE  (Read 544 times)

hkinds

  • Newbie
  • *
  • Posts: 1
HDF5 and AWE
« on: June 20, 2021, 04:23:44 AM »
I have a simple project: create simple HDF5 datafile:
PROGRAM H5_CRTDAT
  USE HDF5 ! This module contains all necessary modules
  IMPLICIT NONE
  CHARACTER(LEN=8), PARAMETER :: filename = "dsetf.h5" ! File name
  CHARACTER(LEN=4), PARAMETER :: dsetname = "dset"     ! Dataset name
  INTEGER(HID_T) :: file_id       ! File identifier
  INTEGER(HID_T) :: dset_id       ! Dataset identifier
  INTEGER(HID_T) :: dspace_id     ! Dataspace identifier
  INTEGER(HSIZE_T), DIMENSION(2) :: dims = (/4,6/) ! Dataset dimensions
  INTEGER     ::   rank = 2                        ! Dataset rank
  INTEGER     ::   error ! Error flag
  CALL h5open_f(error)
  CALL h5fcreate_f(filename, H5F_ACC_TRUNC_F, file_id, error)
  CALL h5screate_simple_f(rank, dims, dspace_id, error)
  CALL h5dcreate_f(file_id, dsetname, H5T_NATIVE_INTEGER, dspace_id, dset_id, error)
  CALL h5dclose_f(dset_id, error)
  CALL h5sclose_f(dspace_id, error)
  CALL h5fclose_f(file_id, error)
  CALL h5close_f(error)
END PROGRAM H5_CRTDAT

When I set target to terminal: no build errors
When I set target to AWE: I get the following link errors:
libhdf5.lib(H5Omtime.c.obj) : error LNK2019: unresolved external symbol timezone referenced in function H5O_mtime_decode
OLDNAMES.lib(timezone.obj) : error LNK2001: unresolved external symbol timezone
.\create.exe : fatal error LNK1120: 2 unresolved externals

forumadmin

  • Administrator
  • Sr. Member
  • *****
  • Posts: 320
Re: HDF5 and AWE
« Reply #1 on: June 21, 2021, 12:48:58 PM »
This issue has been addressed with a patch for the HDF5 libraries included as part of the Windows Absoft Pro Fortran 2021 Additional Libraries package. The patch installer is available for download using this link:

http://www.absoft.com/electronicdelivery/patches/absoft_profortran_win_21_hdf5_tz_patch.exe

Absoft User Forum  |  Archive  |  Additional Software & Libraries Archive  |  HDF5 and AWE
 

gfxgfx
gfx gfx
Powered by MySQL Powered by PHP Valid XHTML 1.0! Valid CSS!