Skip to content

Commit 55b2d67

Browse files
committed
Squashed commit of the following:
commit 21c9cd4 Author: Michael Hirsch, Ph.D <[email protected]> Date: Sun Dec 23 23:52:12 2018 -0500 ci [skip appveyor] commit 805de49 Author: Michael Hirsch, Ph.D <[email protected]> Date: Sun Dec 23 23:45:23 2018 -0500 ci-prereq commit a0030e1 Author: Michael Hirsch, Ph.D <[email protected]> Date: Sun Dec 23 23:33:15 2018 -0500 prereq commit d628d7f Author: Michael Hirsch, Ph.D <[email protected]> Date: Sun Dec 23 23:31:26 2018 -0500 write attr submod commit 3a4be75 Author: Michael Hirsch, Ph.D <[email protected]> Date: Sun Dec 23 23:29:26 2018 -0500 submod commit 3014acd Author: Michael Hirsch, Ph.D <[email protected]> Date: Sun Dec 23 22:55:45 2018 -0500 write int submod commit accf070 Author: Michael Hirsch, Ph.D <[email protected]> Date: Sun Dec 23 22:40:05 2018 -0500 writereal32 submod commit 9b98767 Author: Michael Hirsch, Ph.D <[email protected]> Date: Sun Dec 23 22:36:01 2018 -0500 write submod commit dd64ffd Author: Michael Hirsch, Ph.D <[email protected]> Date: Sun Dec 23 22:23:34 2018 -0500 nested submodule read commit 7a2ce93 Author: Michael Hirsch, Ph.D <[email protected]> Date: Sun Dec 23 22:09:08 2018 -0500 read submodule
1 parent f146cf4 commit 55b2d67

File tree

13 files changed

+1156
-856
lines changed

13 files changed

+1156
-856
lines changed

.appveyor.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ init:
99
- sudo apt-get install -yq --no-install-suggests --no-install-recommends libhdf5-dev > /dev/null
1010

1111
install:
12-
- cd app
13-
- cmake ../src
12+
- cd bin
13+
- cmake ..
1414
- cmake --build .
1515

1616
test_script: ctest --output-on-failure

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ matrix:
2020
- os: osx
2121
env: FC=gfortran
2222
before_install:
23+
- brew upgrade cmake > /dev/null
2324
- brew install gcc > /dev/null
2425
- brew install hdf5 > /dev/null
2526

CMakeLists.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1-
# real32, real64 supported by HDF5 1.10 https://support.hdfgroup.org/HDF5/doc/RM/PredefDTypes.html
2-
cmake_minimum_required (VERSION 3.10)
1+
# 3.12: Fortran submodule
2+
cmake_minimum_required (VERSION 3.12)
33
project(hdf5iface Fortran)
44
enable_testing()
55

66
include(cmake/compilers.cmake)
77

88
include(cmake/hdf5.cmake)
99

10-
add_library(hdf5oo src/hdf5_interface.f90)
10+
add_library(hdf5oo src/hdf5_interface.f90
11+
src/read.f90 src/read_real64.f90 src/read_real32.f90 src/read_int.f90
12+
src/write.f90 src/write_real64.f90 src/write_real32.f90 src/write_int.f90)
1113
# need BOTH includes, for some systems!
1214
target_include_directories(hdf5oo PRIVATE ${HDF5_INCLUDE_DIRS} ${HDF5_Fortran_INCLUDE_DIRS})
1315
target_link_libraries(hdf5oo PRIVATE ${HDF5_Fortran_LIBRARIES} ${HDF5_Fortran_HL_LIBRARIES})

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
# Object-oriented Fortran 2018 HDF5 interface
55

66
Straightforward single-file/module access to HDF5.
7+
Uses Fortran 2008 `submodule` for clean, templatable structure.
78
This thin object-oriented modern Fortran library abstracts away the messy parts of HDF5 so that you can read/write various types/ranks of data with a single command.
89

910
Polymorphic API with read/write integer / real32/64:

0 commit comments

Comments
 (0)