new installation/setup dir to hold all top-level make_*-scripts
This commit is contained in:
parent
41c0bf098c
commit
1f0569230b
|
@ -10,7 +10,8 @@ architectures = {
|
|||
},
|
||||
}
|
||||
|
||||
wd = os.path.dirname(sys.argv[0])
|
||||
wd = os.path.join(os.path.dirname(sys.argv[0]),'../../code')
|
||||
|
||||
for arch in architectures:
|
||||
me = architectures[arch]
|
||||
try:
|
|
@ -1,9 +1,9 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
# Makes the postprocessing routines acessible from everywhere.
|
||||
# renders the postprocessing routines acessible from everywhere.
|
||||
# you need a ~/bin directory in your home folder
|
||||
# add the bin directory to your path by adding the following lines
|
||||
# to your .bashrc file:
|
||||
# if necessary, add the bin directory to your path by
|
||||
# adding the following lines to your .bashrc file:
|
||||
# PATH="$PATH:~/bin"
|
||||
# export PATH
|
||||
|
||||
|
@ -34,8 +34,16 @@ compile = { \
|
|||
],
|
||||
}
|
||||
|
||||
execute = { \
|
||||
'pre' : [
|
||||
],
|
||||
'post' : [
|
||||
'make_postprocessingMath',
|
||||
],
|
||||
}
|
||||
|
||||
homedir = os.getenv('HOME')
|
||||
basedir = os.path.dirname(sys.argv[0])
|
||||
basedir = os.path.join(os.path.dirname(sys.argv[0]),'../../processing')
|
||||
for dir in bin_link:
|
||||
for file in bin_link[dir]:
|
||||
src = os.path.abspath(os.path.join(basedir,dir,file))
|
||||
|
@ -59,3 +67,10 @@ modules = glob.glob(os.path.abspath(os.path.join(basedir,'*.mod')))
|
|||
for module in modules:
|
||||
print module
|
||||
os.remove(module)
|
||||
|
||||
for dir in execute:
|
||||
for file in execute[dir]:
|
||||
cmd = os.path.abspath(os.path.join(basedir,dir,file))
|
||||
if os.access(cmd,os.X_OK):
|
||||
print cmd
|
||||
os.system('%s %s'%(cmd,os.path.join(basedir,dir)))
|
|
@ -10,6 +10,14 @@
|
|||
|
||||
# --f90flags="-heap-arrays 500000000" prevents segmentation fault for large arrays
|
||||
# use ./configure --enable-portable-binary --enable-shared for the compilation of fftw3.2.2
|
||||
f2py -c --f90flags="-heap-arrays 500000000" \
|
||||
postprocessingMath.pyf postprocessingMath.f90 -L ./libfftw3.a
|
||||
if [[ $# -eq 0 ]]; then
|
||||
wd='.'
|
||||
else
|
||||
wd=$1
|
||||
fi
|
||||
|
||||
f2py -c --f90flags="-heap-arrays 500000000" \
|
||||
$wd/postprocessingMath.pyf \
|
||||
$wd/postprocessingMath.f90 \
|
||||
-L $wd/libfftw3.a
|
||||
|
||||
|
|
Loading…
Reference in New Issue