moved setup scripts back to subdirs where they are needed
This commit is contained in:
parent
31a570768b
commit
8467c91dab
|
@ -10,7 +10,7 @@ architectures = {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
wd = os.path.join(os.path.dirname(sys.argv[0]),'../../code')
|
wd = os.path.join(os.path.dirname(sys.argv[0]),'..')
|
||||||
|
|
||||||
for arch in architectures:
|
for arch in architectures:
|
||||||
me = architectures[arch]
|
me = architectures[arch]
|
|
@ -16,8 +16,9 @@ else
|
||||||
wd=$1
|
wd=$1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
f2py -c --f90flags="-heap-arrays 500000000" \
|
cd $wd
|
||||||
$wd/postprocessingMath.pyf \
|
|
||||||
$wd/postprocessingMath.f90 \
|
|
||||||
-L $wd/libfftw3.a
|
|
||||||
|
|
||||||
|
f2py -c --f90flags="-heap-arrays 500000000" \
|
||||||
|
postprocessingMath.pyf \
|
||||||
|
postprocessingMath.f90 \
|
||||||
|
-L libfftw3.a
|
||||||
|
|
|
@ -43,7 +43,7 @@ execute = { \
|
||||||
}
|
}
|
||||||
|
|
||||||
homedir = os.getenv('HOME')
|
homedir = os.getenv('HOME')
|
||||||
basedir = os.path.join(os.path.dirname(sys.argv[0]),'../../processing')
|
basedir = os.path.join(os.path.dirname(sys.argv[0]),'..')
|
||||||
for dir in bin_link:
|
for dir in bin_link:
|
||||||
for file in bin_link[dir]:
|
for file in bin_link[dir]:
|
||||||
src = os.path.abspath(os.path.join(basedir,dir,file))
|
src = os.path.abspath(os.path.join(basedir,dir,file))
|
||||||
|
@ -62,8 +62,8 @@ for dir in compile:
|
||||||
if os.path.isfile(src):
|
if os.path.isfile(src):
|
||||||
print file
|
print file
|
||||||
os.system('ifort -O3 -parallel -o%s %s'%(os.path.splitext(src)[0],src))
|
os.system('ifort -O3 -parallel -o%s %s'%(os.path.splitext(src)[0],src))
|
||||||
|
|
||||||
modules = glob.glob(os.path.abspath(os.path.join(basedir,'*.mod')))
|
modules = glob.glob('*.mod')
|
||||||
for module in modules:
|
for module in modules:
|
||||||
print module
|
print module
|
||||||
os.remove(module)
|
os.remove(module)
|
Loading…
Reference in New Issue