1 |
#!/bin/bash |
2 |
# |
3 |
# $Header: /u/gcmpack/MITgcm/tools/build_options/linux_ia64_ifort+mpi_altix_nas,v 1.21 2010/04/23 19:32:46 dimitri Exp $ |
4 |
# $Name: $ |
5 |
|
6 |
# tested on columbia using: |
7 |
# module purge |
8 |
# module load modules scsl.1.6.1.0 intel-comp.10.1.013 mpt.1.16.0.0 pd-netcdf.3.6.0-p1 |
9 |
|
10 |
FC=ifort |
11 |
|
12 |
DEFINES='-DALLOW_USE_MPI -DALWAYS_USE_MPI -DWORDLENGTH=4' |
13 |
CPP='/lib/cpp -traditional -P' |
14 |
EXTENDED_SRC_FLAG='-132' |
15 |
|
16 |
LIBS='-L/opt/sgi/mpt/1.16.0.0/lib -lmpi -L/opt/pd/netcdf/3.6.0-p1/lib -lnetcdf' |
17 |
INCLUDES='-I/opt/sgi/mpt/1.16.0.0/include -I/opt/pd/netcdf/3.6.0-p1/include' |
18 |
INCLUDEDIRS='/opt/sgi/mpt/1.16.0.0/include' |
19 |
MPIINCLUDEDIR='/opt/sgi/mpt/1.16.0.0/include' |
20 |
MPI_HEADER_FILES='mpif.h mpiof.h mpif_parameters.h' |
21 |
MPI_HEADER_FILES_INC='./mpi_headers/mpif.h ./mpi_headers/mpiof.h ./mpi_headers/mpif_parameters.h' |
22 |
#PAPIINC='-I/usr/local/include' |
23 |
#PAPILIB='-L/usr/local/lib -lpapi' |
24 |
|
25 |
if test "x$IEEE" = x ; then |
26 |
# No need for IEEE-754 |
27 |
# FFLAGS="$FFLAGS -fp-model precise -ftz -w95 -W0 -WB -convert big_endian -assume byterecl" |
28 |
FFLAGS="$FFLAGS -mp -w95 -W0 -WB -convert big_endian -assume byterecl" |
29 |
FOPTIM='-O3 -align' |
30 |
NOOPTFLAGS='-O1' |
31 |
NOOPTFILES='calc_oce_mxlayer.F fizhi_lsm.F fizhi_clockstuff.F' |
32 |
else |
33 |
# Try to follow IEEE-754 |
34 |
FFLAGS="$FFLAGS -w95 -W0 -WB -convert big_endian -assume byterecl" |
35 |
FOPTIM='-O0 -noalign' |
36 |
fi |
37 |
#- might want to use '-r8' for fizhi pkg: |
38 |
#FFLAGS="$FFLAGS -r8" |