/[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.3 by jmc, Sun Mar 21 22:22:52 2010 UTC
# Line 1  Line 1 
1  #!/bin/bash  #!/bin/bash
2  #  #
3    # $Header$
4    # $Name$
5    
6  FC=f77  FC=f77
7  F90C=f90  F90C=f90
8  CC=cc  CC=cc
9    LINK=${F90C}
10    FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) X ## _"
11  DEFINES='-DWORDLENGTH=4 -DUSE_OMP_THREADING'  DEFINES='-DWORDLENGTH=4 -DUSE_OMP_THREADING'
12  CPP='cpp  -traditional -P'  CPP='cpp  -traditional -P'
13  NOOPTFLAGS='-O0 -g -m64 -Kpic -xfilebyteorder=big16:%all -u -r8const -xopenmp=noopt'  NOOPTFLAGS='-O0 -g -m64 -Kpic -xfilebyteorder=big16:%all -u -r8const -xopenmp=noopt'
14  NOOPTFILES=''  NOOPTFILES=''
15    EXTENDED_SRC_FLAG='-e'
16    
17  if test "x$DEVEL" != x ; then  if test "x$DEVEL" != x ; then
18      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 23  fi
23  if test "x$IEEE" = x ; then  if test "x$IEEE" = x ; then
24      #  No need for IEEE-754      #  No need for IEEE-754
25      FOPTIM='-fast -m64 -xvector=simd -xpad=local -Kpic'      FOPTIM='-fast -m64 -xvector=simd -xpad=local -Kpic'
26      LIBS="$LIBS -lmopt -lsunmath"      LIBS="$LIBS -lmopt"
27  else  else
28      #  Try to follow IEEE-754      #  Try to follow IEEE-754
29  #    FOPTIM='-O0 -m64 -Kpic'  #    FOPTIM='-O0 -m64 -Kpic'
# Line 26  else Line 31  else
31  fi  fi
32  F90FLAGS=$FFLAGS  F90FLAGS=$FFLAGS
33  F90OPTIM=$FOPTIM  F90OPTIM=$FOPTIM
34  CFLAGS='-O3 -m64 -KPIC -xopenmp'  CFLAGS='-O3 -m64 -Kpic -xopenmp'
35    
36  if [ "x$NETCDF_ROOT" != x ] ; then  if [ "x$NETCDF_ROOT" != x ] ; then
37      INCLUDEDIR="${NETCDF_ROOT}/include"      INCLUDEDIR="${NETCDF_ROOT}/include"
# Line 60  elif test -d /usr/local/netcdf ; then Line 65  elif test -d /usr/local/netcdf ; then
65      LIBS='-L/usr/local/netcdf/lib'      LIBS='-L/usr/local/netcdf/lib'
66  elif test -d /usr/local/include/netcdf.inc ; then  elif test -d /usr/local/include/netcdf.inc ; then
67      INCLUDES='-I/usr/local/include'      INCLUDES='-I/usr/local/include'
68      LIBS='-L/usr/local/lib64'      LIBS='-L/usr/local/lib64 -L/usr/local/lib'
69  fi  fi
70    

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

  ViewVC Help
Powered by ViewVC 1.1.22