-
As of now no general configure nor Makefile are provided for the compilation.
This deficiency is planned to be alleviated in the future.
The package can be however
straightforwardly compiled by adapting a procedure detailed below.
The example scripts can be viewed here for IBM SP, here for PGI compilers, here for GNU compilers, and here for Intel ones (from Sam Leach).
Since version 2.5 to compile the S2HAT package you will just need an FFT library. At this time the supported choices include: HEALPix FFT routines, FFTW and AMCL.
(Hereafter,
$LIBFFT and $INCFFT denote the relevant paths to the FFT library - lib and include, respectively.) The compilation proceeds as follows:
where,
Subsequently, put all the produced *.mod and provided *.h files into the include directory for the s2hat
library and the produced
libs2hat.a file into a corresponding lib directory. Let us call them
$INCS2HAT and $LIBS2HAT, respectively. To compile your code using the S2HAT routines you need to link both FFT and S2HAT packages, i.e.,
where,
Check here for some simple examples.
|