#!/bin/bash # # $Header: /home/ubuntu/mnt/e9_copy/MITgcm/tools/build_options/linux_amd64_ifort+mpi_ice_nas,v 1.7 2011/06/16 16:30:07 zhc Exp $ # $Name: $ # tested on pleiades using SLES11 and: # module load comp-intel/2011.2 mpi-sgi/mpt.2.04-fsa netcdf/4.0 FC=ifort DEFINES='-DALLOW_USE_MPI -DALWAYS_USE_MPI -DWORDLENGTH=4' CPP='/lib/cpp -traditional -P' EXTENDED_SRC_FLAG='-132' OMPFLAG='-openmp' CFLAGS='-fPIC' LDADD='-shared-intel' LIBS='-L/nasa/sgi/mpt/2.04-fsa/lib -lmpi -L/nasa/netcdf/4.0/lib -lnetcdf' INCLUDES='-I/nasa/sgi/mpt/2.04-fsa/include -I/nasa/netcdf/4.0/include' INCLUDEDIRS='/nasa/sgi/mpt/2.04-fsa/include' MPIINCLUDEDIR='/nasa/sgi/mpt/2.04-fsa/include' MPI_HEADER_FILES='mpif.h mpiof.h mpif_parameters.h' MPI_HEADER_FILES_INC='./mpi_headers/mpif.h ./mpi_headers/mpiof.h ./mpi_headers/mpif_parameters.h' NOOPTFLAGS='-O0 -fPIC' if test "x$IEEE" = x ; then # No need for IEEE-754 FFLAGS="$FFLAGS -fPIC -W0 -WB -convert big_endian -assume byterecl -align" FOPTIM='-O2 -ip -fp-model precise -axSSSE4.2,SSSE3 -traceback -ftz' NOOPTFILES='seaice_growth.F calc_oce_mxlayer.F fizhi_lsm.F fizhi_clockstuff.F' else # Try to follow IEEE-754 FFLAGS="$FFLAGS -fPIC -w95 -W0 -WB -convert big_endian -assume byterecl -noalign" FOPTIM='-O0' fi #- might want to use '-r8' for fizhi pkg: #FFLAGS="$FFLAGS -r8" #- For really big executable (> 2 GB), uncomment following 2 lines #FFLAGS="$FFLAGS -mcmodel=medium -shared-intel" #CFLAGS='-mcmodel=medium'