--- MITgcm/tools/build_options/linux_ia64_ifort+mpi_swell 2008/04/05 21:43:09 1.3 +++ MITgcm/tools/build_options/linux_ia64_ifort+mpi_swell 2010/03/21 17:58:17 1.4 @@ -1,47 +1,35 @@ #!/bin/bash # -# Ed Hill -# -# tested on faulks, 20030818 -# -# Build options for the intel 8.0 fortran compiler -# the compiler is now called ifort (not ifc) and it appears to -# need -DWORDLENGTH=1 and not -DWORDLENGTH=4 (which is what ifc 6.0) used to have. -# ph: use ifort compiler options -convert big_endian -assume byterecl +# $Header: /home/ubuntu/mnt/e9_copy/MITgcm/tools/build_options/linux_ia64_ifort+mpi_swell,v 1.4 2010/03/21 17:58:17 jmc Exp $ +# $Name: $ + +# Build options for Harvard cluster "swell" FC=mpif90 F90C=mpif90 CC=mpicc -DEFINES='-DWORDLENGTH=4 -DALLOW_USE_MPI -DALWAYS_USE_MPI' LINK='mpif90' + +DEFINES='-DWORDLENGTH=4 -DALLOW_USE_MPI -DALWAYS_USE_MPI' CPP='cpp -traditional -P' -#INCLUDES='-I/usr/include/netcdf' +EXTENDED_SRC_FLAG='-132' +#INCLUDES='-I/usr/include/netcdf' INCLUDES='-I/opt/netcdf-3.6.0-p1/include -I/usr/local/topspin/mpi/mpich/include' -LIBS='-L/opt/netcdf-3.6.0-p1/lib -L/usr/local/topspin/mpi/mpich/lib64 -lmpich_i -lpthread' +LIBS='-L/opt/netcdf-3.6.0-p1/lib -L/usr/local/topspin/mpi/mpich/lib64 -lmpich_i -lpthread' # Note that the -mp switch is for ieee "maintain precision" and is # roughly equivalent to -ieee if test "x$IEEE" = x ; then -# lz( FOPTIM='-O3 -align' ) - FOPTIM= + FFLAGS="$FFLAGS -w95 -g -convert big_endian -assume byterecl" + FOPTIM='-O3 -align' #P3 FOPTIM=$FOPTIM' -tpp6 -xWKM' #P4 FOPTIM=$FOPTIM' -tpp7 -xWKM' - FFLAGS='-132 -r8 -i4 -w95 -g -convert big_endian -assume byterecl' - FOPTIM='-O3 -align' else FOPTIM='-O0 -noalign' - FFLAGS='-132 -r8 -i4 -w95 -W0 -WB -xN -pc64 -convert big_endian -assume byterecl' - #FFLAGS='-mp -132 -r8 -i4 -w95 -W0 -WB' + FFLAGS="$FFLAGS -w95 -W0 -WB -xN -pc64 -convert big_endian -assume byterecl" + #FFLAGS="$FFLAGS -mp -w95 -W0 -WB" fi - - - -#if test "x$IEEE" = x ; then -# FFLAGS='-Wimplicit -Wunused -Wuninitialized -fno-second-underscore' -# FOPTIM='-O3 -funroll-loops' -#else -# FFLAGS='-Wimplicit -Wunused -ffloat-store' -# FOPTIM='-O0 ' -#fi +#- might want to use '-r8' for fizhi pkg: +#FFLAGS="$FFLAGS -r8"