...
- zlib: it is necessary previously obtain or compile the zlib compression library (www.zlib.net)
- hdf5: this library is optional www.hdfgroup.org. Required only to write postprocess files with this format (files opened with GiD_PostHDF5=3 flag)
To build GiDPost as Python module you'll need:
- python3
- SWIG: (Simplified Wrapper and Interface Generator) a tool used to connect C or C++ code with scripting languages like python. https://www.swig.org/
To install the required packages in Linux just do the following as root:
Ubuntu (Debian and the like):
...
How to build (Linux - gcc):
Code Block | ||
---|---|---|
| ||
$ cd .../gidpost $ mkdir build-linux $ cd build-linux $ cmake -DHDF5=ON -DBUILD_FORTRAN_EXAMPLES=ON .. ;# gfortran is needed to BUILD_FORTRAN_EXAMPLES (by default it's off) $ make $ cd examples $ ./testc -help ;# to view format options $ ./testc -f hdf5 ;# to write a gid post file in hdf5 format $ ./testf90 ;# fortran 90 example writing hdf5 gid post file |
How to build python module (Linux):
Once you have configured and buil the GiDPost library, then:
Code Block | ||||
---|---|---|---|---|
| ||||
$ cd .../gidpost/gidpost-swig/
$ make
$ make test |
How to build (Linux - nvidia hpc sdk ):
Using nVidia HPC sdk https://developer.nvidia.com/hpc-sdk:
First, remember to add the environment variables to your
$HOME/.bashrc
:...