/[MITgcm]/MITgcm/tools/build_options/linux_ia32_gfortran
ViewVC logotype

Diff of /MITgcm/tools/build_options/linux_ia32_gfortran

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

revision 1.5 by jmc, Mon Jul 21 14:56:01 2008 UTC revision 1.8 by jmc, Fri May 14 21:59:32 2010 UTC
# Line 8  Line 8 
8  #              formally for gcc-gfortran 4.3*  #              formally for gcc-gfortran 4.3*
9  #       + with gcc-gfortran v4.3.0 on FC9  #       + with gcc-gfortran v4.3.0 on FC9
10  #  It fixes the ' \' versus ' &' terminator problem ;  #  It fixes the ' \' versus ' &' terminator problem ;
11  #  some namelist problems remain with old version (The biggest seems  #  some namelist problems remain with old version (The biggest seems
12  #     to be the inability to support namelist syntax such as:  #     to be the inability to support namelist syntax such as:
13  #     fields(1,1) = 'UVELSLT ','VVELSLT ','WVELSLT ',  #     fields(1,1) = 'UVELSLT ','VVELSLT ','WVELSLT ',
14  #      which results in run-time errors).  #      which results in run-time errors).
15    
16    #-------
17    # run with OpenMP: needs to set environment var. OMP_NUM_THREADS
18    #    and generally, needs to increase the thread stack-size:
19    #   -  sh,bash:
20    #     > export OMP_NUM_THREADS=2
21    #     > export GOMP_STACKSIZE=400m
22    #   - csh,tcsh:
23    #     > setenv OMP_NUM_THREADS 2
24    #     > setenv GOMP_STACKSIZE 400m
25    #-------
26    
27  FC=gfortran  FC=gfortran
28  F90C=gfortran  F90C=gfortran
# Line 20  CC=gcc Line 30  CC=gcc
30  DEFINES='-DWORDLENGTH=4 -DNML_TERMINATOR'  DEFINES='-DWORDLENGTH=4 -DNML_TERMINATOR'
31  CPP='cpp -traditional -P'  CPP='cpp -traditional -P'
32  NOOPTFLAGS='-O0'  NOOPTFLAGS='-O0'
33    EXTENDED_SRC_FLAG='-ffixed-line-length-132'
34    OMPFLAG='-fopenmp'
35    
36  if test "x$DEVEL" != x ; then  if test "x$DEVEL" != x ; then
37      FFLAGS='-g -Wall -W -ffpe-trap=invalid,zero,overflow -fbounds-check'      FFLAGS='-g -Wall -W -ffpe-trap=invalid,zero,overflow -fbounds-check'
# Line 76  elif [ "x$NETCDF_INCDIR" != x -a "x$NETC Line 88  elif [ "x$NETCDF_INCDIR" != x -a "x$NETC
88      LIBS="-L${NETCDF_LIBDIR}"      LIBS="-L${NETCDF_LIBDIR}"
89  elif test -d /usr/include/netcdf-3 ; then  elif test -d /usr/include/netcdf-3 ; then
90      INCLUDES='-I/usr/include/netcdf-3'      INCLUDES='-I/usr/include/netcdf-3'
91      LIBS='-L/usr/lib/netcdf-3 -L/usr/lib64/netcdf-3'      LIBS='-L/usr/lib/netcdf-3'
92  elif test -d /usr/include/netcdf ; then  elif test -d /usr/include/netcdf ; then
93      INCLUDES='-I/usr/include/netcdf'      INCLUDES='-I/usr/include/netcdf'
94  elif test -d /usr/local/netcdf ; then  elif test -d /usr/local/netcdf ; then
# Line 84  elif test -d /usr/local/netcdf ; then Line 96  elif test -d /usr/local/netcdf ; then
96      LIBS='-L/usr/local/netcdf/lib'      LIBS='-L/usr/local/netcdf/lib'
97  elif test -d /usr/local/include/netcdf.inc ; then  elif test -d /usr/local/include/netcdf.inc ; then
98      INCLUDES='-I/usr/local/include'      INCLUDES='-I/usr/local/include'
99      LIBS='-L/usr/local/lib64'      LIBS='-L/usr/local/lib'
100  fi  fi

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

  ViewVC Help
Powered by ViewVC 1.1.22