--- MITgcm/tools/genmake2 2007/02/18 21:39:59 1.161 +++ MITgcm/tools/genmake2 2007/07/31 22:27:01 1.164 @@ -1,6 +1,6 @@ #! /usr/bin/env bash # -# $Header: /home/ubuntu/mnt/e9_copy/MITgcm/tools/genmake2,v 1.161 2007/02/18 21:39:59 jmc Exp $ +# $Header: /home/ubuntu/mnt/e9_copy/MITgcm/tools/genmake2,v 1.164 2007/07/31 22:27:01 ce107 Exp $ # # Makefile generator for MITgcm UV codes # created by cnh 03/98 @@ -756,7 +756,9 @@ print *," HELLO WORLD", wtime end EOF - $FC $FFLAGS -o genmake_tc genmake_tc_2.$FS genmake_tc_1.o >> genmake_warnings 2>&1 + COMM="$FC $FFLAGS -o genmake_tc genmake_tc_2.$FS genmake_tc_1.o" + echo $COMM >> genmake_warnings + $COMM >> genmake_warnings 2>&1 RET_F=$? test -x ./genmake_tc && ./genmake_tc >> genmake_warnings 2>&1 RETVAL=$? @@ -1562,6 +1564,7 @@ else DEFINES="$DEFINES -DTIME_PER_TIMESTEP" fi + PACKAGES="$PACKAGES showflops" fi if test ! "x$PAPIS" = x ; then echo " Turning on PAPI flop summary per timestep" @@ -1573,6 +1576,7 @@ fi INCLUDES="$INCLUDES $PAPIINC" LIBS="$LIBS $PAPILIB" + PACKAGES="$PACKAGES showflops" fi if test ! "x$PCLS" = x ; then echo " Turning on PCL counter summary per timestep" @@ -1584,6 +1588,7 @@ fi INCLUDES="$INCLUDES $PCLINC" LIBS="$LIBS $PCLLIB" + PACKAGES="$PACKAGES showflops" fi if test ! "x$PAPI" = x ; then if test ! "x$PAPIS" = x ; then @@ -2029,7 +2034,7 @@ i=0 # rtot=${#PNAME[@]} rtot=$nname - while test $i -lt $rtot ; do + while test $i -le $rtot ; do # Is $pname in the current $PACKAGES list? # pname=${PNAME[$i]} @@ -2063,6 +2068,7 @@ # Do we need to add $dname according to the dependency rules? if test "x$pin" = xt -a "x$plus" = "x+" -a "x$din" = xf ; then + #echo " " $pname ": need to add :" $dname in_dis="f" for dis in $DISABLE ; do if test "x$dis" = "x$dname" ; then