added ifort as standard compiler, compilation is now done in DAMASK_ROOT

This commit is contained in:
Martin Diehl 2012-06-25 09:06:09 +00:00
parent 767842acbf
commit baacbe3b11
1 changed files with 9 additions and 6 deletions

View File

@ -42,6 +42,7 @@ compilers = ['intel','ifort','intel32','gfortran','gnu95']
parser.add_option('--F90', '--f90', dest='compiler', type='string', \
help='name of F90 compiler')
parser.set_defaults(compiler = 'ifort')
(options,filenames) = parser.parse_args()
if options.compiler not in compilers:
@ -136,11 +137,13 @@ execute = { \
# The following command is used to compile math.f90 and make the functions defined in DAMASK_math.pyf
# available for python in the module DAMASK_math.so
# 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
# for the generation of the pyf file:
# f2py -m DAMASK -h DAMASK.pyf --overwrite-signature ../../code/math.f90 \
# module core.so out of the fortran code in the f90 files
# for the generation of the pyf file use the following two lines:
#'f2py -h %s'%(os.path.join(codeDir,'damask.core.pyf')) +\
#' --overwrite-signature --no-lower prec.f90 math.f90 mesh.f90',
'f2py %s'%(os.path.join(codeDir,'damask.core.pyf')) +\
' -c --fcompiler=%s'%(f2py_compiler) +\
' --build-dir %s'%(os.path.join(codeDir)) +\
' -c --no-lower --fcompiler=%s'%(f2py_compiler) +\
' %s'%(os.path.join(codeDir,'prec.f90'))+\
' %s'%(os.path.join(codeDir,'DAMASK_spectral_interface.f90'))+\
' %s'%(os.path.join(codeDir,'IO.f90'))+\