/[MITgcm]/MITgcm/tools/build_options/linux_amd64_sunf90+mth
ViewVC logotype

Diff of /MITgcm/tools/build_options/linux_amd64_sunf90+mth

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

revision 1.1 by ce107, Thu Aug 2 16:47:12 2007 UTC revision 1.2 by ce107, Fri Mar 19 04:00:28 2010 UTC
# Line 4  Line 4 
4  FC=f77  FC=f77
5  F90C=f90  F90C=f90
6  CC=cc  CC=cc
7    LINK=${F90C}
8    FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) X ## _"
9  DEFINES='-DWORDLENGTH=4 -DUSE_OMP_THREADING'  DEFINES='-DWORDLENGTH=4 -DUSE_OMP_THREADING'
10  CPP='cpp  -traditional -P'  CPP='cpp  -traditional -P'
11  NOOPTFLAGS='-O0 -g -m64 -Kpic -xfilebyteorder=big16:%all -u -r8const -xopenmp=noopt'  NOOPTFLAGS='-O0 -g -m64 -Kpic -xfilebyteorder=big16:%all -u -r8const -xopenmp=noopt'
12  NOOPTFILES=''  NOOPTFILES=''
13    EXTENDED_SRC_FLAG='-e'
14    
15  if test "x$DEVEL" != x ; then  if test "x$DEVEL" != x ; then
16      FFLAGS='-xfilebyteorder=big16:%all -u -r8const -g -xs -C -xcommonchk -xcheck=init_local -fpover -xopenmp=noopt'      FFLAGS='-xfilebyteorder=big16:%all -u -r8const -g -xs -C -xcommonchk -xcheck=init_local -fpover -xopenmp=noopt'
# Line 18  fi Line 21  fi
21  if test "x$IEEE" = x ; then  if test "x$IEEE" = x ; then
22      #  No need for IEEE-754      #  No need for IEEE-754
23      FOPTIM='-fast -m64 -xvector=simd -xpad=local -Kpic'      FOPTIM='-fast -m64 -xvector=simd -xpad=local -Kpic'
24      LIBS="$LIBS -lmopt -lsunmath"      LIBS="$LIBS -lmopt"
25  else  else
26      #  Try to follow IEEE-754      #  Try to follow IEEE-754
27  #    FOPTIM='-O0 -m64 -Kpic'  #    FOPTIM='-O0 -m64 -Kpic'
# Line 26  else Line 29  else
29  fi  fi
30  F90FLAGS=$FFLAGS  F90FLAGS=$FFLAGS
31  F90OPTIM=$FOPTIM  F90OPTIM=$FOPTIM
32  CFLAGS='-O3 -m64 -KPIC -xopenmp'  CFLAGS='-O3 -m64 -Kpic -xopenmp'
33    
34  if [ "x$NETCDF_ROOT" != x ] ; then  if [ "x$NETCDF_ROOT" != x ] ; then
35      INCLUDEDIR="${NETCDF_ROOT}/include"      INCLUDEDIR="${NETCDF_ROOT}/include"
# Line 60  elif test -d /usr/local/netcdf ; then Line 63  elif test -d /usr/local/netcdf ; then
63      LIBS='-L/usr/local/netcdf/lib'      LIBS='-L/usr/local/netcdf/lib'
64  elif test -d /usr/local/include/netcdf.inc ; then  elif test -d /usr/local/include/netcdf.inc ; then
65      INCLUDES='-I/usr/local/include'      INCLUDES='-I/usr/local/include'
66      LIBS='-L/usr/local/lib64'      LIBS='-L/usr/local/lib64 -L/usr/local/lib'
67  fi  fi
68    

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.22