... | ... | @@ -21,6 +21,8 @@ The API function to open a H5hut file are more general and more flexible making |
|
|
|
|
|
=== Compile and link a program written in C
|
|
|
|
|
|
For serial compilation set `$CC` to something like `cc`, `gcc`, `icc`. For parallel compilation use `mpicc`.
|
|
|
|
|
|
With H5hut <= 1.99.13
|
|
|
----
|
|
|
$CC -I/opt/H5hut/1.99/include -c H5test.c
|
... | ... | @@ -37,7 +39,9 @@ $CC -L/opt/H5hut/2.0/lib -L/opt/hdf5/1.8.19/lib H5test.o -o H5test -lH5hut -lhdf |
|
|
|
|
|
=== Compile and link a program written in Fortran
|
|
|
|
|
|
No changes are required with the new version to link a Fortran program:
|
|
|
No changes are required with the new version to link a Fortran program.
|
|
|
|
|
|
For serial compilation set `$FC` to something like `f90`. For parallel compilation use `mpif90`.
|
|
|
----
|
|
|
$FC -I/opt/H5hut/2.0/include -c H5test.f90
|
|
|
$FC -o H5test H5test.o -L/opt/hdf5/1.8.19/lib -L/opt/H5hut/2.0/lib -lH5hutF -lH5hut -lhdf5 -lz
|
... | ... | |