| 30 |
|
|
| 31 |
# If the previous option needs an argument, assign it. |
# If the previous option needs an argument, assign it. |
| 32 |
if test -n "$ac_prev"; then |
if test -n "$ac_prev"; then |
| 33 |
eval "$ac_prev=\$ac_option" |
eval "$ac_prev=\$ac_option" |
| 34 |
ac_prev= |
ac_prev= |
| 35 |
continue |
continue |
| 36 |
fi |
fi |
| 37 |
|
|
| 38 |
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
| 39 |
|
|
| 40 |
case $ac_option in |
case $ac_option in |
| 41 |
|
|
| 42 |
-help | --help | -h | --h) |
-help | --help | -h | --h) |
| 43 |
usage ;; |
usage ;; |
|
|
|
|
-date | --date | -d | --d) |
|
|
ac_prev=PERIOD ;; |
|
|
--date=* | -date=*) |
|
|
PERIOD=$ac_optarg ;; |
|
| 44 |
|
|
| 45 |
*) |
-date | --date | -d | --d) |
| 46 |
|
ac_prev=PERIOD ;; |
| 47 |
|
--date=* | -date=*) |
| 48 |
|
PERIOD=$ac_optarg ;; |
| 49 |
|
|
| 50 |
|
*) |
| 51 |
echo "Error: don't understand argument \"$ac_option\"" |
echo "Error: don't understand argument \"$ac_option\"" |
| 52 |
usage |
usage |
| 53 |
;; |
;; |
| 54 |
|
|
| 55 |
esac |
esac |
| 56 |
|
|
| 95 |
for madd in $MALL ; do |
for madd in $MALL ; do |
| 96 |
present=0 |
present=0 |
| 97 |
for m in $MACHINES ; do |
for m in $MACHINES ; do |
| 98 |
echo $madd | grep $m > /dev/null 2>&1 |
echo $madd | grep $m > /dev/null 2>&1 |
| 99 |
RETVAL=$? |
RETVAL=$? |
| 100 |
test $RETVAL = 0 && present=1 |
test $RETVAL = 0 && present=1 |
| 101 |
continue |
continue |
| 102 |
done |
done |
| 103 |
test $present = 0 && MACHINES="$MACHINES $madd" |
test $present = 0 && MACHINES="$MACHINES $madd" |
| 104 |
done |
done |
| 107 |
for mname in $MACHINES ; do |
for mname in $MACHINES ; do |
| 108 |
|
|
| 109 |
echo " $mname" |
echo " $mname" |
|
sname=`echo $mname | sed 's/-$//'` |
|
| 110 |
|
|
| 111 |
dir_list=`grep $mname ./dir_all` |
dir_list=`grep $mname ./dir_all` |
| 112 |
echo -n "" > ./mlist |
echo -n "" > ./mlist |
| 135 |
OPTFILE="not_explicitly_specified" |
OPTFILE="not_explicitly_specified" |
| 136 |
fi |
fi |
| 137 |
|
|
| 138 |
|
# EXTRA = non-standard list of experiment |
| 139 |
ADJOINT= |
ADJOINT= |
| 140 |
|
TANGLIN= |
| 141 |
RESTART=0 |
RESTART=0 |
| 142 |
|
EXTRA= |
| 143 |
FAST=0 |
FAST=0 |
| 144 |
DVLP=0 |
DVLP=0 |
| 145 |
MPI=0 |
MPI=0 |
| 148 |
if test -r $dir/summary.txt ; then |
if test -r $dir/summary.txt ; then |
| 149 |
comm=`grep 'ADJOINT=true' $dir/summary.txt 2>/dev/null` |
comm=`grep 'ADJOINT=true' $dir/summary.txt 2>/dev/null` |
| 150 |
eval $comm |
eval $comm |
| 151 |
|
comm=`grep 'TANGLIN=true' $dir/summary.txt 2>/dev/null` |
| 152 |
|
eval $comm |
| 153 |
RESTART=`grep -c 'test 2+2=4 summary' $dir/summary.txt` |
RESTART=`grep -c 'test 2+2=4 summary' $dir/summary.txt` |
| 154 |
FAST=`grep -c "^run: .*testreport.* '*-fast'*" $dir/summary.txt` |
comm=`grep '^run: .*testreport.* ' $dir/summary.txt` |
| 155 |
|
EXTRA=`echo "$comm" | grep " -*-tdir\>" | sed -e "s/^.* -*-tdir\>//" -e "s/ -.*$//"` |
| 156 |
|
if test "x$EXTRA" = x ; then |
| 157 |
|
EXTRA=`echo "$comm" | grep " -*-t\>" | sed -e "s/^.*-*-t\>//" -e "s/ -.*$//"` |
| 158 |
|
fi |
| 159 |
|
if test "x$EXTRA" = x ; then EXTRA=0 ; else |
| 160 |
|
#echo -n "EXTRA=$EXTRA" |
| 161 |
|
nn0=`echo $EXTRA | sed "s/ *' *//g" | wc -w` |
| 162 |
|
nn1=`echo $EXTRA | sed "s/ *' *//g" | tr ' ' '\n' | grep -c "\<monod_"` |
| 163 |
|
nn2=`echo $EXTRA | sed "s/ *' *//g" | tr ' ' '\n' | grep -c "\<darwin_"` |
| 164 |
|
EXTRA=1 |
| 165 |
|
if [ $nn1 -ge 2 ] ; then EXTRA=2 ; fi |
| 166 |
|
if [ $nn2 -ge 2 ] ; then EXTRA=3 ; fi |
| 167 |
|
#echo " : nn0=$nn0 ; nn1=$nn1 ; nn2=$nn2" |
| 168 |
|
fi |
| 169 |
|
FAST=`echo "$comm" | grep -c " -*-fast\>"` |
| 170 |
if test "x$FAST" = x0 ; then |
if test "x$FAST" = x0 ; then |
| 171 |
FAST=`grep -c "^run: .*testreport.* '*-noieee'*" $dir/summary.txt` |
FAST=`echo "$comm" | grep -c " '*-noieee'*"` |
| 172 |
fi |
fi |
| 173 |
DVLP=`grep -c "^run: .*testreport.* '*-devel'*" $dir/summary.txt` |
DVLP=`echo "$comm" | grep -c " -*-devel\>"` |
| 174 |
MPI=`grep -c "^run: .*testreport.* -mpi " $dir/summary.txt` |
MPI=`echo "$comm" | grep -c " -*-mpi\>"` |
| 175 |
if test "x$MPI" = x0 ; then |
if test "x$MPI" = x0 ; then |
| 176 |
MPI=`grep -c "^run: .*testreport.* -MPI " $dir/summary.txt` |
MPI=`echo "$comm" | grep -c " -*-MPI\>"` |
| 177 |
fi |
fi |
| 178 |
MTH=`grep -c "^run: .*testreport.* -mth " $dir/summary.txt` |
MTH=`echo "$comm" | grep -c " -*-mth\>"` |
| 179 |
UR4=`grep -c "^run: .*testreport.* -use_r4 " $dir/summary.txt` |
UR4=`echo "$comm" | grep -c " -*-use_r4\>"` |
| 180 |
if test "x$UR4" = x0 ; then |
if test "x$UR4" = x0 ; then |
| 181 |
UR4=`grep -c "^run: .*testreport.* -ur4 " $dir/summary.txt` |
UR4=`echo "$comm" | grep -c " -*-ur4\>"` |
| 182 |
fi |
fi |
| 183 |
fi |
fi |
| 184 |
if test "x$ADJOINT" = xtrue ; then |
if test "x$ADJOINT" = xtrue ; then |
| 185 |
kind="adjoint" ; order='000' |
kind="adjoint" ; order=0 |
| 186 |
|
elif test "x$TANGLIN" = xtrue ; then |
| 187 |
|
kind="tanglin" ; order=1 |
| 188 |
elif test "x$RESTART" = x0 ; then |
elif test "x$RESTART" = x0 ; then |
| 189 |
kind="forward" ; order='001' |
kind="forward" ; order=2 |
| 190 |
else |
else |
| 191 |
kind="restart" ; order='002' |
kind="restart" ; order=3 |
| 192 |
fi |
fi |
| 193 |
|
order=`expr $order + 10 \* $EXTRA` |
| 194 |
|
order=`printf '%3.3i' $order` |
| 195 |
if test "x$UR4" = x1 ; then |
if test "x$UR4" = x1 ; then |
| 196 |
OPTFILE="${OPTFILE}.use_r4" |
OPTFILE="${OPTFILE}.use_r4" |
| 197 |
fi |
fi |
| 240 |
if test $num -gt 0 ; then |
if test $num -gt 0 ; then |
| 241 |
|
|
| 242 |
# swap colors |
# swap colors |
| 243 |
ctmp=$color |
ctmp=$color |
| 244 |
color=$ncolor |
color=$ncolor |
| 245 |
ncolor=$ctmp |
ncolor=$ctmp |
| 246 |
|
|
| 247 |
keys=`cat ./mlist | cut -d " " -f 1 | sort | uniq` |
keys=`cat ./mlist | cut -d " " -f 1 | sort | uniq` |
| 248 |
|
|
| 254 |
optf=`echo $tline | cut -d " " -f 3` |
optf=`echo $tline | cut -d " " -f 3` |
| 255 |
DAY=`echo $tline | cut -d " " -f 2` |
DAY=`echo $tline | cut -d " " -f 2` |
| 256 |
URL="results/$PERIOD/$ldir" |
URL="results/$PERIOD/$ldir" |
| 257 |
|
#-- machine name to print: |
| 258 |
|
sname=`echo $mname | sed 's/-$//'` |
| 259 |
|
alt=`echo $key | sed "s/$optf//"` |
| 260 |
|
#if [ $alt -ge 30 ] ; then sname="${sname}.darwin" |
| 261 |
|
#elif [ $alt -ge 20 ] ; then sname="${sname}.monod" ; fi |
| 262 |
cat <<EOF >>$OUTFILE |
cat <<EOF >>$OUTFILE |
| 263 |
<tr bgcolor="$color"> |
<tr bgcolor="$color"> |
| 264 |
<td height="0"> $sname </td> |
<td height="0"> $sname </td> |