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

Annotation of /MITgcm/tools/build_options/linux_ia64_open64+mth

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


Revision 1.1 - (hide annotations) (download)
Mon Jun 22 23:13:30 2009 UTC (14 years, 10 months ago) by ce107
Branch: MAIN
CVS Tags: checkpoint62c, checkpoint62b, checkpoint62a, checkpoint62g, checkpoint62f, checkpoint62e, checkpoint62d, checkpoint62k, checkpoint62j, checkpoint62i, checkpoint62h, checkpoint62o, checkpoint62n, checkpoint62m, checkpoint62l, checkpoint62s, checkpoint62r, checkpoint62q, checkpoint62p, checkpoint62w, checkpoint62v, checkpoint62u, checkpoint62t, checkpoint62z, checkpoint62y, checkpoint62x, checkpoint61x, checkpoint61y, checkpoint61v, checkpoint61w, checkpoint61t, checkpoint61u, checkpoint61r, checkpoint61s, checkpoint61z, checkpoint63a, checkpoint63b, checkpoint63c, checkpoint62, checkpoint63
New and updated optfiles for Intel 11, 10.1 and Pathscale/Open64.

1 ce107 1.1 #!/bin/bash
2     #
3     # $Header: /u/gcmpack/MITgcm/tools/build_options/linux_ia64_open64,v 1.2 2008/01/17 05:39:52 utke Exp $
4     # $Name: $
5     #
6     # Multithreaded tests require
7     # export OMP_SLAVE_STACK_SIZE=400m
8     # export OMP_NUM_THREADS=2
9     #
10    
11     CC=opencc
12     FC=openf90
13     F90C=openf90
14     F90FIXEDFORMAT='-fixedform -x f95'
15     LD=openf90
16     DEFINES='-DWORDLENGTH=4 -DUSE_OMP_THREADING'
17     CPP='cpp -traditional -P'
18     MAKEDEPEND=/usr/X11R6/bin/makedepend
19     NOOPTFLAGS='-O0 -g -openmp'
20     NOOPTFILES=''
21    
22     if test "x$DEVEL" != x ; then
23     FFLAGS='-convert big_endian -openmp -ffortran-bounds-check -trapuv -g'
24     else
25     FFLAGS='-convert big_endian -openmp'
26     fi
27    
28     if test "x$IEEE" = x ; then
29     # No need for IEEE-754
30     FOPTIM='-O3 -LNO:fusion=2 -OPT:roundoff=1:IEEE_arithmetic=3 -OPT:early_mp=ON' # -funsafe-math-optimizations'
31     else
32     # Try to follow IEEE-754
33     FOPTIM='-O3 -LNO:fusion=2 -OPT:roundoff=0:IEEE_arithmetic=1 -fmath-errno -fno-fast-math -OPT:early_mp=ON'
34     fi
35    
36     F90FLAGS=$FFLAGS
37     F90OPTIM=$FOPTIM
38     CFLAGS='-O3 -openmp'
39     GSLLIB='-lgsl -lgslcblas'
40    
41     if [ "x$NETCDF_ROOT" != x ] ; then
42     INCLUDEDIR="${NETCDF_ROOT}/include"
43     INCLUDES="-I${NETCDF_ROOT}/include"
44     LIBDIR="${NETCDF_ROOT}/lib"
45     LIBS="-L${NETCDF_ROOT}/lib"
46     elif [ "x$NETCDF_HOME" != x ]; then
47     INCLUDEDIR="${NETCDF_HOME}/include"
48     INCLUDES="-I${NETCDF_HOME}/include"
49     LIBDIR="${NETCDF_HOME}/lib"
50     LIBS="-L${NETCDF_HOME}/lib"
51     elif [ "x$NETCDF_INC" != x -a "x$NETCDF_LIB" != x ]; then
52     NETCDF_INC=`echo $NETCDF_INC | sed 's/-I//g'`
53     NETCDF_LIB=`echo $NETCDF_LIB | sed 's/-L//g'`
54     INCLUDEDIR="${NETCDF_INC}"
55     INCLUDES="-I${NETCDF_INC}"
56     LIBDIR="${NETCDF_LIB}"
57     LIBS="-L${NETCDF_LIB}"
58     elif [ "x$NETCDF_INCDIR" != x -a "x$NETCDF_LIBDIR" != x ]; then
59     INCLUDEDIR="${NETCDF_INCDIR}"
60     INCLUDES="-I${NETCDF_INCDIR}"
61     LIBDIR="${NETCDF_LIBDIR}"
62     LIBS="-L${NETCDF_LIBDIR}"
63     elif test -d /usr/include/netcdf-3 ; then
64     INCLUDES='-I/usr/include/netcdf-3'
65     LIBS='-L/usr/lib/netcdf-3 -lnetcdf_g77'
66     elif test -d /usr/include/netcdf ; then
67     INCLUDES='-I/usr/include/netcdf'
68     elif test -d /usr/local/netcdf ; then
69     INCLUDES='-I/usr/local/netcdf/include'
70     LIBS='-L/usr/local/netcdf/lib'
71     elif test -d /usr/local/include/netcdf.inc ; then
72     INCLUDES='-I/usr/local/include'
73     LIBS='-L/usr/local/lib'
74     fi
75    

  ViewVC Help
Powered by ViewVC 1.1.22