| 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 |
FAST=0 |
FAST=0 |
| 106 |
DVLP=0 |
DVLP=0 |
| 110 |
if test -r $dir/summary.txt ; then |
if test -r $dir/summary.txt ; then |
| 111 |
comm=`grep 'ADJOINT=true' $dir/summary.txt 2>/dev/null` |
comm=`grep 'ADJOINT=true' $dir/summary.txt 2>/dev/null` |
| 112 |
eval $comm |
eval $comm |
| 113 |
|
comm=`grep 'TANGLIN=true' $dir/summary.txt 2>/dev/null` |
| 114 |
|
eval $comm |
| 115 |
RESTART=`grep -c 'test 2+2=4 summary' $dir/summary.txt` |
RESTART=`grep -c 'test 2+2=4 summary' $dir/summary.txt` |
| 116 |
FAST=`grep -c "^run: .*testreport.* '*-fast'*" $dir/summary.txt` |
FAST=`grep -c "^run: .*testreport.* '*-fast'*" $dir/summary.txt` |
| 117 |
if test "x$FAST" = x0 ; then |
if test "x$FAST" = x0 ; then |
| 130 |
fi |
fi |
| 131 |
if test "x$ADJOINT" = xtrue ; then |
if test "x$ADJOINT" = xtrue ; then |
| 132 |
kind="adjoint" ; order='000' |
kind="adjoint" ; order='000' |
| 133 |
|
elif test "x$TANGLIN" = xtrue ; then |
| 134 |
|
kind="tanglin" ; order='001' |
| 135 |
elif test "x$RESTART" = x0 ; then |
elif test "x$RESTART" = x0 ; then |
| 136 |
kind="forward" ; order='001' |
kind="forward" ; order='002' |
| 137 |
else |
else |
| 138 |
kind="restart" ; order='002' |
kind="restart" ; order='003' |
| 139 |
fi |
fi |
| 140 |
if test "x$UR4" = x1 ; then |
if test "x$UR4" = x1 ; then |
| 141 |
OPTFILE="${OPTFILE}.use_r4" |
OPTFILE="${OPTFILE}.use_r4" |
| 158 |
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]$//'` |
| 159 |
day=`echo $ttt | sed -e 's|_| |g' |awk '{print $NF}'` |
day=`echo $ttt | sed -e 's|_| |g' |awk '{print $NF}'` |
| 160 |
|
|
| 161 |
if [ $day -lt $BEFORE ] ; then |
if [ $day -lt $BEFORE ] ; then |
| 162 |
echo "$OPTFILE$order $day $OPTFILE $kind $i" >> ./plist |
echo "$OPTFILE$order $day $OPTFILE $kind $i" >> ./plist |
| 163 |
elif [ $day -ge $FIRSTDAY -a $day -le $LASTDAY ] ; then |
elif [ $day -ge $FIRSTDAY -a $day -le $LASTDAY ] ; then |
| 164 |
echo "$OPTFILE$order $day $OPTFILE $kind $i" >> ./slist |
echo "$OPTFILE$order $day $OPTFILE $kind $i" >> ./slist |
| 207 |
|
|
| 208 |
# If the previous option needs an argument, assign it. |
# If the previous option needs an argument, assign it. |
| 209 |
if test -n "$ac_prev"; then |
if test -n "$ac_prev"; then |
| 210 |
eval "$ac_prev=\$ac_option" |
eval "$ac_prev=\$ac_option" |
| 211 |
ac_prev= |
ac_prev= |
| 212 |
continue |
continue |
| 213 |
fi |
fi |
| 214 |
|
|
| 215 |
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |