2011-02-09 23:17:28 +05:30
|
|
|
#!/bin/bash
|
|
|
|
|
2011-11-03 00:19:53 +05:30
|
|
|
# $Id$
|
|
|
|
|
2011-02-09 23:17:28 +05:30
|
|
|
# This script is used to compile the python module used for geometry reconstruction.
|
|
|
|
# It uses the fortran wrapper f2py that is included in the numpy package to construct the
|
|
|
|
# module postprocessingMath.so out of the fortran code postprocessingMath.f90
|
|
|
|
# written by M. Diehl, m.diehl@mpie.de
|
|
|
|
|
2011-11-03 00:19:53 +05:30
|
|
|
# for the generation of the pyf file:
|
|
|
|
# f2py -m postprocessingMath -h postprocessingMath.pyf --overwrite-signature postprocessingMath.f90
|
2011-02-09 23:17:28 +05:30
|
|
|
|
|
|
|
# --f90flags="-heap-arrays 500000000" prevents segmentation fault for large arrays
|
2011-02-14 22:51:31 +05:30
|
|
|
# use ./configure --enable-portable-binary --enable-shared for the compilation of fftw3.2.2
|
2011-11-03 00:19:53 +05:30
|
|
|
|
2011-03-11 14:50:37 +05:30
|
|
|
if [[ $# -eq 0 ]]; then
|
|
|
|
wd='.'
|
|
|
|
else
|
|
|
|
wd=$1
|
|
|
|
fi
|
|
|
|
|
2011-03-22 21:12:53 +05:30
|
|
|
cd $wd
|
2011-08-25 21:01:05 +05:30
|
|
|
rm postprocessingMath.so
|
2011-10-20 18:17:57 +05:30
|
|
|
f2py -c \
|
2011-03-22 21:12:53 +05:30
|
|
|
postprocessingMath.pyf \
|
|
|
|
postprocessingMath.f90 \
|
2011-10-20 18:17:57 +05:30
|
|
|
-lfftw3 \
|
|
|
|
-L./
|
2011-11-03 00:19:53 +05:30
|
|
|
#--f90flags="-heap-arrays 500000000"
|