/[MITgcm]/MITgcm/tools/build_options/linux_amd64_ifort+mpi_beagle
ViewVC logotype

Diff of /MITgcm/tools/build_options/linux_amd64_ifort+mpi_beagle

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.4 by jmc, Wed Sep 23 18:38:33 2009 UTC revision 1.5 by jahn, Thu Oct 15 23:06:32 2009 UTC
# Line 26  CC='mpicc' Line 26  CC='mpicc'
26  F90C='mpif90 -fixed -c '  F90C='mpif90 -fixed -c '
27  LINK='mpif77'  LINK='mpif77'
28  INCLUDES="$CPPFLAGS"  INCLUDES="$CPPFLAGS"
29  LIBS="$LDFLAGS"  LIBS="$LDFLAGS -shared-intel"
30    
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'
# Line 39  NOOPTFILES='mds_byteswapr8.F mds_byteswa Line 39  NOOPTFILES='mds_byteswapr8.F mds_byteswa
39  if test "x$IEEE" = x ; then  if test "x$IEEE" = x ; then
40      #  No need for IEEE-754      #  No need for IEEE-754
41      NOOPTFLAGS='-O2'      NOOPTFLAGS='-O2'
42      FOPTIM='-O3 -align'      # use this for exact checkpointing (slightly slower):
43        # FOPTIM='-O2 -pc64 -mieee-fp -align'
44        FOPTIM='-O2 -align'
45      # ifort options:      # ifort options:
46      # -132        fixed-form line length is 132 characters      # -132        fixed-form line length is 132 characters
47      # -r8         REAL is REAL*8      # -r8         REAL is REAL*8
# Line 52  if test "x$IEEE" = x ; then Line 54  if test "x$IEEE" = x ; then
54      # -assume byterecl     record length in OPEN statements is in bytes      # -assume byterecl     record length in OPEN statements is in bytes
55      # -convert big_endian  binary files contain big-endian data      # -convert big_endian  binary files contain big-endian data
56      # -shared-intel        avoids static library mismatch (?)      # -shared-intel        avoids static library mismatch (?)
57      FFLAGS="$FFLAGS -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"
58  else  else
59      #  Try to follow IEEE-754      #  Try to follow IEEE-754
60      NOOPTFLAGS='-O0'      NOOPTFLAGS='-O0'
# Line 62  else Line 64  else
64      # -pc64       round floating point values to 64 bits      # -pc64       round floating point values to 64 bits
65      # one could also try      # one could also try
66      # -mp         maintain precision      # -mp         maintain precision
67      FFLAGS="$FFLAGS -pc64 -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"
68  fi  fi
69  F90FLAGS=$FFLAGS  F90FLAGS=$FFLAGS
70  F90OPTIM=$FOPTIM  F90OPTIM=$FOPTIM

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.22