26 |
F90C='mpif90 -fixed -c ' |
F90C='mpif90 -fixed -c ' |
27 |
LINK='mpif77' |
LINK='mpif77' |
28 |
INCLUDES="$CPPFLAGS" |
INCLUDES="$CPPFLAGS" |
29 |
LIBS="$LDFLAGS" |
LIBS="$LDFLAGS -shared-intel" |
30 |
|
|
31 |
# -DIFORT turns on ifort-specific declarations in darwin (RAND is not an intrinsic) |
# -DIFORT turns on ifort-specific declarations in darwin (RAND is not an intrinsic) |
32 |
DEFINES='-DALLOW_USE_MPI -DALWAYS_USE_MPI -DWORDLENGTH=4 -DIFORT' |
DEFINES='-DALLOW_USE_MPI -DALWAYS_USE_MPI -DWORDLENGTH=4 -DIFORT' |
39 |
if test "x$IEEE" = x ; then |
if test "x$IEEE" = x ; then |
40 |
# No need for IEEE-754 |
# No need for IEEE-754 |
41 |
NOOPTFLAGS='-O2' |
NOOPTFLAGS='-O2' |
42 |
FOPTIM='-O3 -align' |
# use this for exact checkpointing (slightly slower): |
43 |
|
# FOPTIM='-O2 -pc64 -mieee-fp -align' |
44 |
|
FOPTIM='-O2 -align' |
45 |
# ifort options: |
# ifort options: |
46 |
# -132 fixed-form line length is 132 characters |
# -132 fixed-form line length is 132 characters |
47 |
# -r8 REAL is REAL*8 |
# -r8 REAL is REAL*8 |
54 |
# -assume byterecl record length in OPEN statements is in bytes |
# -assume byterecl record length in OPEN statements is in bytes |
55 |
# -convert big_endian binary files contain big-endian data |
# -convert big_endian binary files contain big-endian data |
56 |
# -shared-intel avoids static library mismatch (?) |
# -shared-intel avoids static library mismatch (?) |
57 |
FFLAGS="$FFLAGS -r8 -i4 -w95 -W0 -WB -xT -fno-alias -assume byterecl -convert big_endian -shared-intel" |
FFLAGS="$FFLAGS -r8 -i4 -w95 -W0 -WB -xT -fno-alias -assume byterecl -convert big_endian" |
58 |
else |
else |
59 |
# Try to follow IEEE-754 |
# Try to follow IEEE-754 |
60 |
NOOPTFLAGS='-O0' |
NOOPTFLAGS='-O0' |
64 |
# -pc64 round floating point values to 64 bits |
# -pc64 round floating point values to 64 bits |
65 |
# one could also try |
# one could also try |
66 |
# -mp maintain precision |
# -mp maintain precision |
67 |
FFLAGS="$FFLAGS -pc64 -r8 -i4 -w95 -W0 -WB -xT -fno-alias -assume byterecl -convert big_endian -shared-intel" |
FFLAGS="$FFLAGS -pc64 -r8 -i4 -w95 -W0 -WB -xT -fno-alias -assume byterecl -convert big_endian" |
68 |
fi |
fi |
69 |
F90FLAGS=$FFLAGS |
F90FLAGS=$FFLAGS |
70 |
F90OPTIM=$FOPTIM |
F90OPTIM=$FOPTIM |