[MITgcm-devel] genmake_local for fizhi
Martin Losch
martin.losch at awi.de
Fri Jun 3 02:52:54 EDT 2016
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
More information about the MITgcm-devel
mailing list