1 |
#!/bin/bash |
#!/bin/bash |
2 |
# |
# |
3 |
|
# $Header$ |
4 |
|
# $Name$ |
5 |
|
|
6 |
# Build options for the intel compiler with OpenAD |
# Build options for the intel compiler with OpenAD |
7 |
|
|
8 |
FC=ifort |
FC=ifort |
11 |
DEFINES='-DWORDLENGTH=4' |
DEFINES='-DWORDLENGTH=4' |
12 |
LINK='ifort -static' |
LINK='ifort -static' |
13 |
CPP='cpp -traditional -P' |
CPP='cpp -traditional -P' |
14 |
INCLUDES='-I/usr/local/pkg/netcdf/include' |
INCLUDES='' |
15 |
LIBS='-L/usr/local/pkg/netcdf/lib -lnetcdf' |
LIBS='' |
16 |
|
|
|
# Note that the -mp switch is for ieee "maintain precision" and is |
|
|
# roughly equivalent to -ieee |
|
17 |
if test "x$IEEE" = x ; then |
if test "x$IEEE" = x ; then |
18 |
FOPTIM='-O0 -g' |
FOPTIM='-O3 -align' |
19 |
FFLAGS='-132 -r8 -i4 -w95 -W0 -WB -convert big_endian -assume byterecl' |
FFLAGS='-132 -r8 -i4 -W0 -WB -convert big_endian -assume byterecl' |
20 |
else |
else |
21 |
FOPTIM='-O0 -noalign' |
FOPTIM='-O0 -g -noalign -fp-model source' |
22 |
FFLAGS='-132 -r8 -i4 -w95 -W0 -WB -xN -pc64 -convert big_endian -assume byterecl' |
FFLAGS='-132 -r8 -i4 -W0 -WB -pc64 -convert big_endian -assume byterecl' |
23 |
fi |
fi |
24 |
|
|
25 |
F90OPTIM=$FOPTIM |
F90OPTIM=$FOPTIM |
26 |
F90FLAGS=$FFLAGS |
F90FLAGS=$FFLAGS |
|
|
|