[MITgcm-devel] genmake_local for fizhi

Jean-Michel Campin jmc at mit.edu
Fri Jun 3 10:51:20 EDT 2016


Hi Martin,

This looks good. 
Please check-in these changes when you have time.

Cheers,
Jean-Michel

On Fri, Jun 03, 2016 at 08:52:54AM +0200, Martin Losch wrote:
> Hi Jean-Michel,
> 
> I can make the two fizhi experiments fizhi-cs-32x32x40 and fizhi-cs-aqualev20 compile with the cray compiler, when I modify the genmake_local file like this to accomodate the specific flag (-s real64) for setting default 64-bit for real and double precision:
> 
> ollie0:build> cat genmake_local 
> retvg=1
> retvc=1
> if test "x$OPTFILE" != x ; then
>   basename $OPTFILE | grep gfortran > /dev/null 2>&1 ; retvg=$? ;
>   basename $OPTFILE | grep cray > /dev/null 2>&1 ; retvc=$? ;
> fi
> if test $retvg = 0 ; then
>   FFLAGS='-fdefault-real-8 -fdefault-double-8'
>   echo "    local gfortran setting: FFLAGS='$FFLAGS'"
> elif test $retvc = 0 ; then
>   FFLAGS='-s real64'
>   echo "    local cce setting: FFLAGS='$FFLAGS'"
> else
>   FFLAGS='-r8'
>   echo "    local default setting: FFLAGS='$FFLAGS'???
> fi
> 
> Do you think that???s worth checking in?
> 
> Martin
> 
> 
> _______________________________________________
> MITgcm-devel mailing list
> MITgcm-devel at mitgcm.org
> http://mitgcm.org/mailman/listinfo/mitgcm-devel



More information about the MITgcm-devel mailing list