| 6 |
# the latest output with the previous one (from the same platform with |
# the latest output with the previous one (from the same platform with |
| 7 |
# same optfile) |
# same optfile) |
| 8 |
|
|
|
|
|
| 9 |
usage() |
usage() |
| 10 |
{ |
{ |
| 11 |
echo |
echo |
| 100 |
fi |
fi |
| 101 |
|
|
| 102 |
ADJOINT= |
ADJOINT= |
| 103 |
|
TANGLIN= |
| 104 |
RESTART=0 |
RESTART=0 |
| 105 |
NOI3E=0 |
EXTRA=0 |
| 106 |
|
FAST=0 |
| 107 |
|
DVLP=0 |
| 108 |
|
MPI=0 |
| 109 |
MTH=0 |
MTH=0 |
| 110 |
|
UR4=0 |
| 111 |
if test -r $dir/summary.txt ; then |
if test -r $dir/summary.txt ; then |
| 112 |
comm=`grep 'ADJOINT=true' $dir/summary.txt 2>/dev/null` |
comm=`grep 'ADJOINT=true' $dir/summary.txt 2>/dev/null` |
| 113 |
eval $comm |
eval $comm |
| 114 |
|
comm=`grep 'TANGLIN=true' $dir/summary.txt 2>/dev/null` |
| 115 |
|
eval $comm |
| 116 |
RESTART=`grep -c 'test 2+2=4 summary' $dir/summary.txt` |
RESTART=`grep -c 'test 2+2=4 summary' $dir/summary.txt` |
| 117 |
NOI3E=`grep -c "^run: .*testreport.* '*-noieee'*" $dir/summary.txt` |
comm=`grep '^run: .*testreport.* ' $dir/summary.txt` |
| 118 |
MTH=`grep -c "^run: .*testreport.* -mth" $dir/summary.txt` |
EXTRA=`echo "$comm" | grep -c " -*-tdir\>"` |
| 119 |
|
if test "x$EXTRA" = x0 ; then |
| 120 |
|
EXTRA=`echo "$comm" | grep -c " -*-t\>"` |
| 121 |
|
fi |
| 122 |
|
FAST=`echo "$comm" | grep -c " -*-fast\>"` |
| 123 |
|
if test "x$FAST" = x0 ; then |
| 124 |
|
FAST=`echo "$comm" | grep -c " '*-noieee'*"` |
| 125 |
|
fi |
| 126 |
|
DVLP=`echo "$comm" | grep -c " -*-devel\>"` |
| 127 |
|
MPI=`echo "$comm" | grep -c " -*-mpi\>"` |
| 128 |
|
if test "x$MPI" = x0 ; then |
| 129 |
|
MPI=`echo "$comm" | grep -c " -*-MPI\>"` |
| 130 |
|
fi |
| 131 |
|
MTH=`echo "$comm" | grep -c " -*-mth\>"` |
| 132 |
|
UR4=`echo "$comm" | grep -c " -*-use_r4\>"` |
| 133 |
|
if test "x$UR4" = x0 ; then |
| 134 |
|
UR4=`echo "$comm" | grep -c " -*-ur4\>"` |
| 135 |
|
fi |
| 136 |
fi |
fi |
| 137 |
if test "x$RESTART" = x0 ; then |
if test "x$ADJOINT" = xtrue ; then |
| 138 |
kind="forward" |
kind="adjoint" ; order=0 |
| 139 |
test "x$ADJOINT" = xtrue && kind="adjoint" |
elif test "x$TANGLIN" = xtrue ; then |
| 140 |
|
kind="tanglin" ; order=1 |
| 141 |
|
elif test "x$RESTART" = x0 ; then |
| 142 |
|
kind="forward" ; order=2 |
| 143 |
else |
else |
| 144 |
kind="restart" |
kind="restart" ; order=3 |
| 145 |
|
fi |
| 146 |
|
if test "x$EXTRA" != x0 ; then |
| 147 |
|
order=`expr $order + 4` |
| 148 |
|
fi |
| 149 |
|
order=`printf '%3.3i' $order` |
| 150 |
|
if test "x$UR4" = x1 ; then |
| 151 |
|
OPTFILE="${OPTFILE}.use_r4" |
| 152 |
|
fi |
| 153 |
|
if test "x$MPI" = x1 ; then |
| 154 |
|
yy=`echo $OPTFILE | grep -c '+mpi'` |
| 155 |
|
if test $yy = 0 ; then OPTFILE="${OPTFILE}+mpi" ; fi |
| 156 |
fi |
fi |
| 157 |
if test "x$MTH" = x1 ; then |
if test "x$MTH" = x1 ; then |
| 158 |
yy=`echo $OPTFILE | grep -c '+mth$'` |
yy=`echo $OPTFILE | grep -c '+mth$'` |
| 159 |
if test $yy = 0 ; then OPTFILE="${OPTFILE}+mth" ; fi |
if test $yy = 0 ; then OPTFILE="${OPTFILE}+mth" ; fi |
| 160 |
fi |
fi |
| 161 |
if test "x$NOI3E" = x1 ; then |
if test "x$FAST" = x1 ; then |
| 162 |
OPTFILE="${OPTFILE}.noieee" |
OPTFILE="${OPTFILE}.fast" |
| 163 |
|
fi |
| 164 |
|
if test "x$DVLP" = x1 ; then |
| 165 |
|
OPTFILE="${OPTFILE}.dvlp" |
| 166 |
fi |
fi |
| 167 |
day=`echo $i | sed -e 's/_[0-9]$//' | sed -e 's/_[0-9][0-9]$//'` |
day=`echo $i | sed -e 's/_[0-9]$//' | sed -e 's/_[0-9][0-9]$//'` |
| 168 |
ttt=`echo $day | sed -e 's/_[0-9]$//' | sed -e 's/_[0-9][0-9]$//'` |
ttt=`echo $day | sed -e 's/_[0-9]$//' | sed -e 's/_[0-9][0-9]$//'` |
| 169 |
day=`echo $ttt | sed -e 's|_| |g' |awk '{print $NF}'` |
day=`echo $ttt | sed -e 's|_| |g' |awk '{print $NF}'` |
| 170 |
|
|
| 171 |
if [ $day -lt $BEFORE ] ; then |
if [ $day -lt $BEFORE ] ; then |
| 172 |
echo "$OPTFILE$kind $day $OPTFILE $kind $i" >> ./plist |
echo "$OPTFILE$order $day $OPTFILE $kind $i" >> ./plist |
| 173 |
elif [ $day -ge $FIRSTDAY -a $day -le $LASTDAY ] ; then |
elif [ $day -ge $FIRSTDAY -a $day -le $LASTDAY ] ; then |
| 174 |
echo "$OPTFILE$kind $day $OPTFILE $kind $i" >> ./slist |
echo "$OPTFILE$order $day $OPTFILE $kind $i" >> ./slist |
| 175 |
else |
else |
| 176 |
if test $dBug = 't' ; then |
if test $dBug = 't' ; then |
| 177 |
echo "discard day='$day' from: $i" | tee -a $OUTPFIL |
echo "discard day='$day' from: $i" | tee -a $OUTPFIL |
| 217 |
|
|
| 218 |
# If the previous option needs an argument, assign it. |
# If the previous option needs an argument, assign it. |
| 219 |
if test -n "$ac_prev"; then |
if test -n "$ac_prev"; then |
| 220 |
eval "$ac_prev=\$ac_option" |
eval "$ac_prev=\$ac_option" |
| 221 |
ac_prev= |
ac_prev= |
| 222 |
continue |
continue |
| 223 |
fi |
fi |
| 224 |
|
|
| 225 |
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
| 336 |
( cd $INDIR ; ls -1 -t */summary.txt | sed 's/\/summary.txt//' ) > ./dir_all |
( cd $INDIR ; ls -1 -t */summary.txt | sed 's/\/summary.txt//' ) > ./dir_all |
| 337 |
|
|
| 338 |
if test "x$MACHINES" = "x_All_" ; then |
if test "x$MACHINES" = "x_All_" ; then |
| 339 |
MACHINES="faulks meander aces.jmc aces.ce107 baudelaire dickens danton beagle harbor" |
MACHINES="faulks meander aces- acesgrid baudelaire dickens danton beagle harbor" |
| 340 |
MACHINES="$MACHINES pleiades iblade rays solasrv sx8" |
MACHINES="$MACHINES pleiades iblade rays solasrv sx8" |
| 341 |
MACHINES="$MACHINES trane dodongo dokdo stomp bigred" |
MACHINES="$MACHINES trane dodongo dokdo stomp bigred" |
| 342 |
|
|
| 357 |
|
|
| 358 |
for pname in $MACHINES ; do |
for pname in $MACHINES ; do |
| 359 |
|
|
| 360 |
|
sname=`echo $pname | sed 's/-$//'` |
| 361 |
mname=`echo $pname | sed 's/\./ /g' | awk '{print $1}'` |
mname=`echo $pname | sed 's/\./ /g' | awk '{print $1}'` |
| 362 |
sUser= |
sUser= |
| 363 |
if test $mname != $pname ; then |
if test $mname != $pname ; then |
| 403 |
#if test $mname = 'aces' -a $optf = 'linux_ia32_open64' ; then num=-1 ; fi |
#if test $mname = 'aces' -a $optf = 'linux_ia32_open64' ; then num=-1 ; fi |
| 404 |
#if test $mname = 'aces' -a $optf = 'linux_ia32_g95' ; then num=-1 ; fi |
#if test $mname = 'aces' -a $optf = 'linux_ia32_g95' ; then num=-1 ; fi |
| 405 |
dd=`echo $optf | grep -c 'bigred.*noieee'` |
dd=`echo $optf | grep -c 'bigred.*noieee'` |
| 406 |
if test $mname = 'bigred' -a $dd = 1 ; then num=-1 ; fi |
#if test $mname = 'bigred' -a $dd = 1 ; then num=-1 ; fi |
| 407 |
if test $num -lt 0 ; then |
if test $num -lt 0 ; then |
| 408 |
echo " discard $sdir : $type , of='$optf'" | tee -a $OUTPFIL |
echo " discard $sdir : $type , of='$optf'" | tee -a $OUTPFIL |
| 409 |
cmis=`expr $cmis + 1` |
cmis=`expr $cmis + 1` |
| 484 |
fi |
fi |
| 485 |
done |
done |
| 486 |
if [ $cmis -gt 0 ] ; then tmis='(-'$cmis')' ; else tmis='(--)' ; fi |
if [ $cmis -gt 0 ] ; then tmis='(-'$cmis')' ; else tmis='(--)' ; fi |
| 487 |
printf '%11s : %3i %4s %3i ' $pname $ctot $tmis $cdif >> $OUTPSUM |
printf '%11s : %3i %4s %3i ' $sname $ctot $tmis $cdif >> $OUTPSUM |
| 488 |
if [ $cdif -gt 0 ] ; then |
if [ $cdif -gt 0 ] ; then |
| 489 |
echo " $clin" >> $OUTPSUM |
echo " $clin" >> $OUTPSUM |
| 490 |
else echo "" >> $OUTPSUM ; fi |
else echo "" >> $OUTPSUM ; fi |