Skip to content

Releases: geospace-code/h5fortran

add shape checks for read/write (disk vs. memory)

24 Feb 16:06
4caf8e5
Compare
Choose a tag to compare

added shape checks and self tests for read and write -- check that shape of memory array and disk array match for read, and for write if variable exists. Return error code if they don't.

fail build if HDF5 broken and not a subproject

24 Feb 02:53
a0e88cf
Compare
Choose a tag to compare
  • harmonize layout with h5fortran
  • fail if HDF5 is broken and h5fortran is the main project.

BUGFIX: reading into a slice of an array

23 Feb 17:49
2da3020
Compare
Choose a tag to compare

fixed BUG: reading into an array slice failed due to bug in C-Fortran interface. This has been fixed by using a buffer variable inside h5fortran.

cmake: don't give fatal_error if hdf5 not found, let calling project decide that.

cmake BUGFIX for compiler flags, increase findHDF5 robustness

21 Feb 03:10
7c45ed1
Compare
Choose a tag to compare
  • CMake: fix bug in cmake_fortran_flags syntax
  • increase robustness of FindHDF5, especially for HDF5 1.10.6
  • don't build selftests when used via FetchContent

cmake: findHDF5 increased robustness

12 Feb 04:27
0a4e279
Compare
Choose a tag to compare

Find auxiliary libraries when HDF5 compiler wrapper is not working

cmake: backport findhdf5 for better finding

11 Feb 17:30
7da83f0
Compare
Choose a tag to compare

Anaconda / Miniconda has broken HDF5 wrapper that can trip up old CMake FindHDF5. So we made a CMake MR accepted for CMake 3.18, that is backported here as cmake/Modules/FindHDF5.cmake

dev / quality: cleanup build for better templating

04 Feb 17:18
6057264
Compare
Choose a tag to compare

cleanup build scripts for easier templating. Cleanup CI

modernize CMake

16 Jan 03:03
bc23554
Compare
Choose a tag to compare

provide imported target h5fortran::h5fortran and associated package info as per modern CMake best practices.

easy io: h5write, h5read

15 Jan 20:54
c0dff8f
Compare
Choose a tag to compare

For the simplest possible Fortran interface to HDF5, we added the h5save and h5read subroutines.
They are polymorphic scalar..7d, int32/64, real32/64

use h5fortran

call h5write('foo.h5', '/x', x)

call h5read('bar.h5', '/y', y)

try to close file if write fails, internal cleanup

13 Jan 20:05
0dcf418
Compare
Choose a tag to compare

for non-user facing interfaces, reduce excessive OO usage that is better handled as plain variables due to its ephemeral natures

tries to close datasets and files if an error occurs.