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' |
33 |
CPP='cpp -traditional -P' |
CPP='cpp -traditional -P' |
34 |
|
EXTENDED_SRC_FLAG='-132' |
35 |
|
#OMPFLAG='-openmp' |
36 |
|
|
37 |
NOOPTFILES='mds_byteswapr8.F mds_byteswapr4.F mds_byteswapi4.F mom_calc_ke.F' |
NOOPTFILES='mds_byteswapr8.F mds_byteswapr4.F mds_byteswapi4.F mom_calc_ke.F mon_ke.F' |
38 |
|
|
39 |
if test "x$IEEE" = x ; then |
if test "x$IEEE" = x ; then |
40 |
# No need for IEEE-754 |
# No need for IEEE-754 |
52 |
# -assume byterecl record length in OPEN statements is in bytes |
# -assume byterecl record length in OPEN statements is in bytes |
53 |
# -convert big_endian binary files contain big-endian data |
# -convert big_endian binary files contain big-endian data |
54 |
# -shared-intel avoids static library mismatch (?) |
# -shared-intel avoids static library mismatch (?) |
55 |
FFLAGS="$FFLAGS -132 -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 -shared-intel" |
56 |
else |
else |
57 |
# Try to follow IEEE-754 |
# Try to follow IEEE-754 |
58 |
NOOPTFLAGS='-O0' |
NOOPTFLAGS='-O0' |
62 |
# -pc64 round floating point values to 64 bits |
# -pc64 round floating point values to 64 bits |
63 |
# one could also try |
# one could also try |
64 |
# -mp maintain precision |
# -mp maintain precision |
65 |
FFLAGS="$FFLAGS -pc64 -132 -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 -shared-intel" |
66 |
fi |
fi |
67 |
F90FLAGS=$FFLAGS |
F90FLAGS=$FFLAGS |
68 |
F90OPTIM=$FOPTIM |
F90OPTIM=$FOPTIM |
69 |
|
|
70 |
NOOPTFILES=$NOOPTFILES' mitcplr_char2real.F mitcplr_real2char.F' |
NOOPTFILES=$NOOPTFILES' mds_byteswap.F' |
|
NOOPTFILES=$NOOPTFILES' mitcplr_char2int.F mitcplr_int2char.F mds_byteswap.F' |
|
71 |
|
|