- a fortran compiler and a proper mpi implementation
- fftw
- cmake > 2.8
- a python implementation including numpy and mpi4py.
The install consists in 3 steps. First configuration of the package, makefile, setup.py and other files generation, then build of the underlying fortran libraries and of the python package and finally copy of the required files in the appropriate place.
We denote :
- SOURCEDIR as the directory which contains the sources (and this INSTALL file)
- BUILDDIR the directory where the package will be configured and build
- INSTALLDIR the directory where the package will be installed.
Those 3 locations must be different.
\subsection config configuration :
You need to generate some makefile and a setup.py that fits with your platform, your compilers,
the libraries versions and so on. That will take place in BUILDDIR.
-# get SOURCEDIR (i.e. download the package any way you want)
-# create BUILDDIR. Any place, preferably local to your machine for efficiency reasons.
-# enforce a fortran compiler using FC environment variable
-# Change to BUILDDIR and run cmake
\code
mkdir BUILDIR
cd BUILDDIR
export FC=mpif90
cmake SOURCEDIR
\endcode
At the end of this step BUILDDIR contains all makefiles, setup.py and other required files for compilation.
Some useful options for cmake :
- -DFFTW_DIR : where to find fftw if it's not in a "standard" place.
- -DWITH_SCALES=ON/OFF : to compile a parmepy version including scales (default = on)
- -DWITH_PPM=ON/OFF : to compile a parmepy version including scales (default = off)