1 |
#!/bin/bash |
#!/bin/bash |
2 |
# |
# |
3 |
|
# $Header$ |
4 |
|
# $Name$ |
5 |
|
# |
6 |
# Constantinos Evangelinos |
# Constantinos Evangelinos |
7 |
# |
# |
8 |
# Build options for the intel 11 fortran compiler |
# Build options for the intel 11 fortran compiler |
9 |
|
|
10 |
|
#------- |
11 |
|
# run with OpenMP: needs to set environment var. OMP_NUM_THREADS |
12 |
|
# and generally, needs to increase the stack-size: |
13 |
|
# - sh,bash: |
14 |
|
# > export OMP_NUM_THREADS=2 |
15 |
|
# > export KMP_STACKSIZE=400m |
16 |
|
# - csh,tcsh: |
17 |
|
# > setenv OMP_NUM_THREADS 2 |
18 |
|
# > setenv KMP_STACKSIZE 400m |
19 |
|
#------- |
20 |
|
|
21 |
FC=ifort |
FC=ifort |
22 |
F90C=ifort |
F90C=ifort |
23 |
CC=icc |
CC=icc |
25 |
|
|
26 |
DEFINES='-DWORDLENGTH=4' |
DEFINES='-DWORDLENGTH=4' |
27 |
CPP='cpp -traditional -P' |
CPP='cpp -traditional -P' |
28 |
F90FIXEDFORMAT='-fixed -Tf' |
F90FIXEDFORMAT='-fixed -Tf' |
29 |
EXTENDED_SRC_FLAG='-132' |
EXTENDED_SRC_FLAG='-132' |
30 |
|
OMPFLAG='-openmp' |
31 |
|
|
32 |
NOOPTFLAGS='-O0 -g -m64 -fPIC' |
NOOPTFLAGS='-O0 -g -m64 -fPIC' |
33 |
NOOPTFILES='' |
NOOPTFILES='' |
37 |
LIBS='' |
LIBS='' |
38 |
|
|
39 |
if test "x$DEVEL" != x ; then |
if test "x$DEVEL" != x ; then |
40 |
FFLAGS='-m64 -fPIC -r8 -i4 -convert big_endian -assume byterecl -O0 -g -debug all -debug-parameters all -noalign -fp-stack-check -check all -fpe0 -traceback -ftrapuv -fp-model strict -warn all' |
FFLAGS='-m64 -fPIC -convert big_endian -assume byterecl -O0 -g -debug all -debug-parameters all -noalign -fp-stack-check -check all -fpe0 -traceback -ftrapuv -fp-model strict -warn all' |
41 |
else |
else |
42 |
FFLAGS='-m64 -fPIC -r8 -i4 -W0 -WB -convert big_endian -assume byterecl' |
FFLAGS='-m64 -fPIC -W0 -WB -convert big_endian -assume byterecl' |
43 |
fi |
fi |
44 |
|
#- might want to use '-r8' for fizhi pkg: |
45 |
|
#FFLAGS="$FFLAGS -r8" |
46 |
|
|
47 |
if test "x$GENERIC" != x ; then |
if test "x$GENERIC" != x ; then |
48 |
PROCF=-axSSE4.2,SSE4.1,SSSE3,SSE3,SSE2 |
PROCF=-axSSE4.2,SSE4.1,SSSE3,SSE3,SSE2 |