[MITgcm-devel] Beaufort experiment on mac os x

Menemenlis, Dimitris (3248) Dimitris.Menemenlis at jpl.nasa.gov
Thu Mar 15 14:33:22 EDT 2012


Torge, thank you for checking.

Martin and Jean-Michel, will you (or should I?) check in the

    NOOPTFILES='ini_masks_etc.F gmredi_calc_psi_bvp.F'

fix for darwin_amd64_gfortran and darwin_ia32_gfortran

Let me know

Dimitris Menemenlis

On Mar 15, 2012, at 11:28 AM, Torge Martin wrote:

> Oh, I changed just the Makefile but did not start my tests with genmake.
> 
> Thanks, Dimitris, this works!
> 
> changes to darwin_amd64_gfortran:
> 
> NOOPTFLAGS='-O0'
> ### NOOPTFILES=''
> NOOPTFILES='ini_masks_etc.F gmredi_calc_psi_bvp.F'
> 
> but you have to be careful because these variables are reset later in 
> the optfile if option -ieee is not used:
> 
> if test "x$IEEE" = x ; then
>     FFLAGS="$FFLAGS -Wunused -Wuninitialized"
>     FOPTIM='-O3 -ftree-vectorize -funroll-loops'
>     NOOPTFLAGS='-O2 -funroll-loops'
>     NOOPTFILES='gad_c4_adv_x.F gad_u3_adv_x.F'
> else
>     FFLAGS="$FFLAGS -Wunused"
>     FOPTIM='-O0'
> fi
> 
> this should be changed to:
> 
> if test "x$IEEE" = x ; then
>     FFLAGS="$FFLAGS -Wunused -Wuninitialized"
>     FOPTIM='-O3 -ftree-vectorize -funroll-loops'
> else
>     FFLAGS="$FFLAGS -Wunused"
>     FOPTIM='-O0'
> fi
> 
> Torge




More information about the MITgcm-devel mailing list