[MITgcm-support] MITgcm on intel mac 10.5.7
Martin Losch
Martin.Losch at awi.de
Mon Jul 27 11:09:02 EDT 2009
Don't worry about this type of warning; you probably have
NONLIN_FRSURF undefined and then the routine body is basically empty
(have a look at update_surf_dr.F or .for), so that myTime/myIter/
myThid are defined but not used in this routine. You can suppress this
warning by changing compiler flag if it bothers you (FLAGS='-Wunused'
is set, that makes the compiler warning appear).
M.
On Jul 27, 2009, at 4:50 PM, Ayah Lazar wrote:
> Thank you Martin and Jody for your advice.
> The compilation works now. However, I get a repetitive warning when
> compiling (below). But it still manages to run. What do you think?
> Best,
> Ayah
>
> Warning: Unused dummy argument 'myiter' at (1)
> update_surf_dr.for:337.55:
>
> SUBROUTINE UPDATE_SURF_DR( myTime, myIter, myThid )
> 1
> Warning: Unused dummy argument 'mythid' at (1)
> update_surf_dr.for:337.39:
>
> SUBROUTINE UPDATE_SURF_DR( myTime, myIter, myThid )
>
>
> On Mon, Jul 27, 2009 at 12:01 PM, Martin Losch <Martin.Losch at awi.de>
> wrote:
> Not very elegant (as the genmake2 should do this automatically), but
> try putting
> FS='for'
> FS90='fr9'
> into your build_options file. This should force genmake2 to use
> these endings instead of .f and .f90
> M.
>
>
> On Jul 26, 2009, at 1:43 PM, Ayah Lazar wrote:
>
> Hello,
> I am trying to run the MIT gcm on my mac (Intel Core 2 Duo with OSX
> 10.5.7).
> I installed gcc-leopard-intel-bin and the MITgcm (v61).
>
> I am not sure if it matters, but the path is /model/MITgcm and the
> gfortran is under /model/usr/local/bin. first I tried when the
> fortran and the gcm were both in my Utilities folder and I thought
> that might be the reason for the problem (However the error is the
> same).
>
> when writing:
> ------------------
> ../../tools/genmake2 -mods=../code -of ../../tools/build_options/
> darwin_ia32_gfortran_ayah.txt
>
>
> I get the following notice (the optfile is appended below):
> ---------------------------------------------------------------------------
> GENMAKE :
>
> A program for GENerating MAKEfiles for the MITgcm project. For a
> quick list of options, use "genmake -h" or for more detail see:
>
> http://mitgcm.org/devel_HOWTO/
>
> === Processing options files and arguments ===
> getting local config information: none found
> Warning: ROOTDIR was not specified but there appears to be a copy
> of MITgcm at "../.." so we'll try it.
> getting OPTFILE information:
> using OPTFILE="../../tools/build_options/
> darwin_ia32_gfortran_ayah.txt"
> getting AD_OPTFILE information:
> using AD_OPTFILE="../../tools/adjoint_options/adjoint_default"
> ERROR: Your file system cannot distinguish between *.F and *.f files
> (fails the "make/ln" test) and this program cannot find a suitable
> replacement extension. Please try a different build environment or
> contact the <MITgcm-support at mitgcm.org> list for help.
>
> Thank you very much,
> Ayah
>
>
> THE OPTFILE:
> -----------------------
> #!/bin/bash
>
> # $Header: /u/gcmpack/MITgcm/tools/build_options/
> darwin_ia32_gfortran,v 1.5 2009/04/02 18:28:31 dfer Exp $
> #
> # tested on MacBook Pro
> # on 28-Nov-2006
>
> CPP='/model/usr/local/bin/cpp -traditional -P'
> FC=/model/usr/local/bin/gfortran
> CC=/model/usr/local/bin/gcc
> LINK=gfortran
> NOOPTFLAGS='-O0'
> EXTENDED_SRC_FLAG='-ffixed-line-length-132'
>
> S64='$(TOOLSDIR)/set64bitConst.sh'
> #EH3 MAKEDEPEND='${TOOLSDIR}/xmakedepend'
> #EH3 MAKEDEPEND=makedepend
> DEFINES='-DWORDLENGTH=4 -DNML_TERMINATOR'
> INCLUDEDIRS='/sw/include'
> INCLUDES='-I/sw/include'
> LIBS='-L/sw/lib'
>
> ##INCLUDEDIRS='/Users/heimbach/NetCDF/netcdf-3.6.0-p1/gfortran/
> include'
> ##INCLUDES='-I/Users/heimbach/NetCDF/netcdf-3.6.0-p1/gfortran/include'
> ##LIBS='-L/Users/heimbach/NetCDF/netcdf-3.6.0-p1/gfortran/lib'
>
> ###FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) _ ## X ## _"
> ###FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) X"
> ###FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) X ## _"
>
> # For IEEE, use the "-ffloat-store" option
> if test "x$IEEE" = x ; then
> FFLAGS='-Wunused -Wuninitialized -fsecond-underscore -
> fconvert=big-endian'
> FOPTIM='-O3 -funroll-loops'
> NOOPTFLAGS='-O2 -funroll-loops'
> NOOPTFILES='gad_c4_adv_x.F gad_u3_adv_x.F'
> else
> FFLAGS='-Wunused -ffloat-store -fsecond-underscore -fconvert=big-
> endian'
> FOPTIM='-O0'
> fi
>
> _______________________________________________
> MITgcm-support mailing list
> MITgcm-support at mitgcm.org
> http://mitgcm.org/mailman/listinfo/mitgcm-support
>
> _______________________________________________
> MITgcm-support mailing list
> MITgcm-support at mitgcm.org
> http://mitgcm.org/mailman/listinfo/mitgcm-support
>
> _______________________________________________
> MITgcm-support mailing list
> MITgcm-support at mitgcm.org
> http://mitgcm.org/mailman/listinfo/mitgcm-support
More information about the MITgcm-support
mailing list