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

Contents of /MITgcm/tools/build_options/unsupported/linux_amd64_sunf90+mth

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


Revision 1.1 - (show annotations) (download)
Thu Sep 29 16:11:33 2011 UTC (12 years, 7 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint64y, checkpoint64x, checkpoint64z, checkpoint64q, checkpoint64p, checkpoint64s, checkpoint64r, checkpoint64u, checkpoint64t, checkpoint64w, checkpoint64v, checkpoint64i, checkpoint64h, checkpoint64k, checkpoint64j, checkpoint64m, checkpoint64l, checkpoint64o, checkpoint64n, checkpoint64a, checkpoint64c, checkpoint64b, checkpoint64e, checkpoint64d, checkpoint64g, checkpoint64f, checkpoint63p, checkpoint63q, checkpoint63r, checkpoint63s, checkpoint63l, checkpoint63m, checkpoint63n, checkpoint63o, checkpoint63h, checkpoint63i, checkpoint63j, checkpoint63k, checkpoint63d, checkpoint63e, checkpoint63f, checkpoint63g, checkpoint64, checkpoint65, checkpoint66g, checkpoint66f, checkpoint66e, checkpoint66d, checkpoint66c, checkpoint66b, checkpoint66a, checkpoint66o, checkpoint66n, checkpoint66m, checkpoint66l, checkpoint66k, checkpoint66j, checkpoint66i, checkpoint66h, checkpoint65z, checkpoint65x, checkpoint65y, checkpoint65r, checkpoint65s, checkpoint65p, checkpoint65q, checkpoint65v, checkpoint65w, checkpoint65t, checkpoint65u, checkpoint65j, checkpoint65k, checkpoint65h, checkpoint65i, checkpoint65n, checkpoint65o, checkpoint65l, checkpoint65m, checkpoint65b, checkpoint65c, checkpoint65a, checkpoint65f, checkpoint65g, checkpoint65d, checkpoint65e, HEAD
move to unsupported/ (has been merged into linux_amd64_sunf90)

1 #!/bin/bash
2 #
3 # $Header: /u/gcmpack/MITgcm/tools/build_options/linux_amd64_sunf90+mth,v 1.3 2010/03/21 22:22:52 jmc Exp $
4 # $Name: $
5
6 FC=f77
7 F90C=f90
8 CC=cc
9 LINK=${F90C}
10 FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) X ## _"
11 DEFINES='-DWORDLENGTH=4 -DUSE_OMP_THREADING'
12 CPP='cpp -traditional -P'
13 NOOPTFLAGS='-O0 -g -m64 -Kpic -xfilebyteorder=big16:%all -u -r8const -xopenmp=noopt'
14 NOOPTFILES=''
15 EXTENDED_SRC_FLAG='-e'
16
17 if test "x$DEVEL" != x ; then
18 FFLAGS='-xfilebyteorder=big16:%all -u -r8const -g -xs -C -xcommonchk -xcheck=init_local -fpover -xopenmp=noopt'
19 else
20 FFLAGS='-xfilebyteorder=big16:%all -u -r8const -xopenmp'
21 fi
22
23 if test "x$IEEE" = x ; then
24 # No need for IEEE-754
25 FOPTIM='-fast -m64 -xvector=simd -xpad=local -Kpic'
26 LIBS="$LIBS -lmopt"
27 else
28 # Try to follow IEEE-754
29 # FOPTIM='-O0 -m64 -Kpic'
30 FOPTIM='-fast -m64 -xpad=local -fsimple=1 -Kpic'
31 fi
32 F90FLAGS=$FFLAGS
33 F90OPTIM=$FOPTIM
34 CFLAGS='-O3 -m64 -Kpic -xopenmp'
35
36 if [ "x$NETCDF_ROOT" != x ] ; then
37 INCLUDEDIR="${NETCDF_ROOT}/include"
38 INCLUDES="-I${NETCDF_ROOT}/include"
39 LIBDIR="${NETCDF_ROOT}/lib"
40 LIBS="-L${NETCDF_ROOT}/lib"
41 elif [ "x$NETCDF_HOME" != x ]; then
42 INCLUDEDIR="${NETCDF_HOME}/include"
43 INCLUDES="-I${NETCDF_HOME}/include"
44 LIBDIR="${NETCDF_HOME}/lib"
45 LIBS="-L${NETCDF_HOME}/lib"
46 elif [ "x$NETCDF_INC" != x -a "x$NETCDF_LIB" != x ]; then
47 NETCDF_INC=`echo $NETCDF_INC | sed 's/-I//g'`
48 NETCDF_LIB=`echo $NETCDF_LIB | sed 's/-L//g'`
49 INCLUDEDIR="${NETCDF_INC}"
50 INCLUDES="-I${NETCDF_INC}"
51 LIBDIR="${NETCDF_LIB}"
52 LIBS="-L${NETCDF_LIB}"
53 elif [ "x$NETCDF_INCDIR" != x -a "x$NETCDF_LIBDIR" != x ]; then
54 INCLUDEDIR="${NETCDF_INCDIR}"
55 INCLUDES="-I${NETCDF_INCDIR}"
56 LIBDIR="${NETCDF_LIBDIR}"
57 LIBS="-L${NETCDF_LIBDIR}"
58 elif test -d /usr/include/netcdf-3 ; then
59 INCLUDES='-I/usr/include/netcdf-3'
60 LIBS='-L/usr/lib/netcdf-3 -L/usr/lib64/netcdf-3'
61 elif test -d /usr/include/netcdf ; then
62 INCLUDES='-I/usr/include/netcdf'
63 elif test -d /usr/local/netcdf ; then
64 INCLUDES='-I/usr/local/netcdf/include'
65 LIBS='-L/usr/local/netcdf/lib'
66 elif test -d /usr/local/include/netcdf.inc ; then
67 INCLUDES='-I/usr/local/include'
68 LIBS='-L/usr/local/lib64 -L/usr/local/lib'
69 fi

  ViewVC Help
Powered by ViewVC 1.1.22