Difference between revisions of "HDF5"
From MohidWiki
m (1 revision) |
|||
Line 1: | Line 1: | ||
HDF5 is a general purpose library and file format for storing scientific data. It's the standard input/output format of spatial and/or temporal data sets in MOHID. | HDF5 is a general purpose library and file format for storing scientific data. It's the standard input/output format of spatial and/or temporal data sets in MOHID. | ||
+ | |||
+ | == HDF5 libraries == | ||
+ | |||
+ | ===Windows=== | ||
+ | The windows binaries are served directly from our [[codeplex]] repository, so there is no need to install them. | ||
+ | |||
+ | === Linux === | ||
+ | To compile Mohid it is mandatory to have the HDF5 [http://hdf.ncsa.uiuc.edu/HDF5/] libraries compiled. In HDF5's web page it is possible to obtain both binary distribuitions and the source code. Most of the times it is necessary to build from source which takse the following steps: | ||
+ | # download the source code, e. g. hdf5-1.6.5.tar.gz; | ||
+ | # <code> > tar -zxvf hdf5-1.6.5.tar.gz</code> | ||
+ | # <code> > cd hdf5-1.6.5</code> | ||
+ | # <code> > F9X=ifort ./configure --enable-fortran (--prefix=$HDF5ROOTDIR --enable-parallel)</code> | ||
+ | # <code> > make</code> | ||
+ | # <code> > make check</code> | ||
+ | # <code> > make install</code> | ||
+ | Libraries may be found in ./hdf5/lib/ and, typically, in /opt/hdf5/hdf5/lib. Detailed information may be found in file ./release_docs/INSTALL. | ||
+ | |||
+ | ==== Debian or Ubuntu distros ==== | ||
+ | Alternatively, in Debian or Ubuntu, just type | ||
+ | > sudo apt-get install libhdf5-serial-dev | ||
+ | to install the hdf5 libs with the fortran interface or | ||
+ | > sudo apt-get install libhdf5-mpich-dev | ||
+ | to install the hdf5 libs with the fortran interface *and* with MPI. | ||
+ | |||
+ | ==== Zlib libraries ==== | ||
+ | To use the HDF5 libraries it is mandatory to have installed the zlib libraries. So install the zlib package for your linux distro. Also, keep a record of where the libz.a library is installed (it might come in handy later on).# | ||
+ | |||
== References == | == References == |
Revision as of 08:37, 7 May 2010
HDF5 is a general purpose library and file format for storing scientific data. It's the standard input/output format of spatial and/or temporal data sets in MOHID.
Contents
HDF5 libraries
Windows
The windows binaries are served directly from our codeplex repository, so there is no need to install them.
Linux
To compile Mohid it is mandatory to have the HDF5 [1] libraries compiled. In HDF5's web page it is possible to obtain both binary distribuitions and the source code. Most of the times it is necessary to build from source which takse the following steps:
- download the source code, e. g. hdf5-1.6.5.tar.gz;
-
> tar -zxvf hdf5-1.6.5.tar.gz
-
> cd hdf5-1.6.5
-
> F9X=ifort ./configure --enable-fortran (--prefix=$HDF5ROOTDIR --enable-parallel)
-
> make
-
> make check
-
> make install
Libraries may be found in ./hdf5/lib/ and, typically, in /opt/hdf5/hdf5/lib. Detailed information may be found in file ./release_docs/INSTALL.
Debian or Ubuntu distros
Alternatively, in Debian or Ubuntu, just type
> sudo apt-get install libhdf5-serial-dev
to install the hdf5 libs with the fortran interface or
> sudo apt-get install libhdf5-mpich-dev
to install the hdf5 libs with the fortran interface *and* with MPI.
Zlib libraries
To use the HDF5 libraries it is mandatory to have installed the zlib libraries. So install the zlib package for your linux distro. Also, keep a record of where the libz.a library is installed (it might come in handy later on).#
References
HDF5 Homepage - [2]