Skip to content

Commit 30294c1

Browse files
committed
api
1 parent 2c55c2e commit 30294c1

File tree

2 files changed

+11
-13
lines changed

2 files changed

+11
-13
lines changed

README.md

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1-
# hdf5-benchmark
1+
# h5fortran-mpi
22

3-
[![ci](https://github.com/geospace-code/hdf5-benchmark/actions/workflows/ci.yml/badge.svg)](https://github.com/geospace-code/hdf5-benchmark/actions/workflows/ci.yml)
4-
[![ci_macos](https://github.com/geospace-code/hdf5-benchmark/actions/workflows/ci_macos.yml/badge.svg)](https://github.com/geospace-code/hdf5-benchmark/actions/workflows/ci_macos.yml)
5-
[![intel-oneapi](https://github.com/geospace-code/hdf5-benchmark/actions/workflows/intel-oneapi.yml/badge.svg)](https://github.com/geospace-code/hdf5-benchmark/actions/workflows/intel-oneapi.yml)
3+
[![ci](https://github.com/geospace-code/h5fortran-mpi/actions/workflows/ci.yml/badge.svg)](https://github.com/geospace-code/h5fortran-mpi/actions/workflows/ci.yml)
4+
[![ci_macos](https://github.com/geospace-code/h5fortran-mpi/actions/workflows/ci_macos.yml/badge.svg)](https://github.com/geospace-code/h5fortran-mpi/actions/workflows/ci_macos.yml)
5+
[![intel-oneapi](https://github.com/geospace-code/h5fortran-mpi/actions/workflows/intel-oneapi.yml/badge.svg)](https://github.com/geospace-code/h5fortran-mpi/actions/workflows/intel-oneapi.yml)
66

77
Easy to use object-oriented Fortran HDF5 interface.
88
This interface requires MPI, although it is capable of non-MPI file I/O.
9-
The original object-oriented Fortran HDF5 interface without MPI is [h5fortran](https://github.com/geospace-code/h5fortran).
10-
The non-MPI h5fortran and h5fortran-mpi APIs are by design nearly identical.
9+
The original object-oriented Fortran HDF5 interface **without MPI** is [h5fortran](https://github.com/geospace-code/h5fortran).
10+
The [h5fortran-mpi API](./API.md)
11+
is by design nearly identical to the non-MPI serial h5fortran API.
1112
A very similar NetCDF4 interface is [nc4fortran](https://github.com/geospace-code/nc4fortran).
1213

1314
Many computer systems default to the serial HDF5 API, which lacks the HDF5 parallel MPI layer.
@@ -60,15 +61,12 @@ cmake --build build
6061

6162
## Notes
6263

63-
To build and install the HDF5 parallel library use the script from our h5fortran repo:
64+
To build and install the HDF5 parallel library use the script:
6465

6566
```sh
66-
git clone https://github.com/geospace-code/h5fortran
67-
cd h5fortran/scripts
67+
cmake -B build_hdf5 -S scripts --install-prefix=$HOME/lib_par
6868

69-
cmake -B build --install-prefix=$HOME/lib_par -Dhdf5_parallel=on
70-
71-
cmake --build build
69+
cmake --build build_hdf5
7270
```
7371

7472
that will build and install HDF5 under ~/lib_par (or other directory of your choice).

src/interface.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ end subroutine readattr_char
345345
module subroutine readattr_num(self, dname, attr, attrval)
346346
class(hdf5_file), intent(in) :: self
347347
character(*), intent(in) :: dname, attr
348-
class(*), intent(out) :: attrval(:)
348+
class(*), intent(inout) :: attrval(:)
349349
end subroutine readattr_num
350350

351351
module subroutine writeattr_char(self, dname, attr, attrval)

0 commit comments

Comments
 (0)