You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-4Lines changed: 11 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
# Object-oriented Fortran 2018 HDF5 interface
5
5
6
6
Straightforward single-file/module access to HDF5.
7
-
Abstracts away the messy parts of HDF5 so that you can read/write various types/ranks of data with a single command.
7
+
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.
8
8
9
9
Polymorphic API with read/write integer / real32/64:
10
10
@@ -39,15 +39,21 @@ Requirements:
39
39
Build this HDF5 OO Fortran interface:
40
40
41
41
```sh
42
-
cd app
43
-
cmake ../src
42
+
cd bin
43
+
cmake ..
44
+
44
45
cmake --build .
45
46
46
47
ctest -V
47
48
```
48
49
49
50
The library `libh5oo` is built, link it into your program as usual.
50
51
52
+
53
+
---
54
+
55
+
If you need to specify a particular HDF5 library, use `cmake -DHDF5_ROOT=/path/to/hdf5lib ..`
56
+
51
57
## Usage
52
58
53
59
All examples assume:
@@ -58,7 +64,8 @@ type(hdf5_file) :: h5f
58
64
```
59
65
60
66
61
-
* gzip compression may be applied for rank ≥ 2 arrays by setting `comp_lvl` to a value betwen 1 and 9. Shuffle filter is automatically applied for better compression
67
+
* gzip compression may be applied for rank ≥ 2 arrays by setting `comp_lvl` to a value betwen 1 and 9.
68
+
Shuffle filter is automatically applied for better compression
62
69
* string attributes may be applied to any variable at time of writing or later.
63
70
*`chunk_size` option may be set for better compression
check_fortran_source_compiles("program a; character :: b; error stop b; end" f18errorstop
37
-
SRC_EXT f90)
35
+
check_fortran_source_compiles("
36
+
program a
37
+
character :: b
38
+
error stop b
39
+
end program"
40
+
f18errorstop
41
+
SRC_EXT f90)
42
+
43
+
if(NOT f18errorstop)
44
+
message(FATAL_ERROR "f2018 error stop with variable required, which is not supported by ${CMAKE_Fortran_COMPILER_ID}${CMAKE_Fortran_COMPILER_VERSION}")
0 commit comments