... | ... | @@ -17,4 +17,27 @@ Several changes has been made to the H5hut C and Fortran API: |
|
|
|
|
|
The API function to open a H5hut file are more general and more flexible making it simpler to add new features. Adapting old code is easy and straight forward.
|
|
|
|
|
|
== Compiling and Linking |
|
|
\ No newline at end of file |
|
|
== Compiling and Linking
|
|
|
|
|
|
=== Compile and link a program written in C
|
|
|
|
|
|
With H5hut <= 1.99.13
|
|
|
----
|
|
|
$CC -I/opt/H5hut/1.99/include -c H5test.c
|
|
|
$CC -L/opt/H5hut/1.99/lib -L/opt/hdf5/1.8.19/lib H5test.o -o H5test -lH5hutC -lH5hut -lhdf5 -lz
|
|
|
----
|
|
|
|
|
|
New:
|
|
|
----
|
|
|
$CC -I/opt/H5hut/2.0/include -c H5test.c
|
|
|
$CC -L/opt/H5hut/2.0/lib -L/opt/hdf5/1.8.19/lib H5test.o -o H5test -lH5hut -lhdf5 -lz
|
|
|
----
|
|
|
|
|
|
|
|
|
=== Compile and link a program written in Fortran
|
|
|
|
|
|
No changes are required with the new version to link a Fortran program:
|
|
|
----
|
|
|
$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
|
|
|
---- |
|
|
\ No newline at end of file |