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 |
137 |
fi |
fi |
138 |
|
|
139 |
ADJOINT= |
ADJOINT= |
140 |
|
TANGLIN= |
141 |
RESTART=0 |
RESTART=0 |
142 |
FAST=0 |
FAST=0 |
143 |
DVLP=0 |
DVLP=0 |
147 |
if test -r $dir/summary.txt ; then |
if test -r $dir/summary.txt ; then |
148 |
comm=`grep 'ADJOINT=true' $dir/summary.txt 2>/dev/null` |
comm=`grep 'ADJOINT=true' $dir/summary.txt 2>/dev/null` |
149 |
eval $comm |
eval $comm |
150 |
|
comm=`grep 'TANGLIN=true' $dir/summary.txt 2>/dev/null` |
151 |
|
eval $comm |
152 |
RESTART=`grep -c 'test 2+2=4 summary' $dir/summary.txt` |
RESTART=`grep -c 'test 2+2=4 summary' $dir/summary.txt` |
153 |
FAST=`grep -c "^run: .*testreport.* '*-fast'*" $dir/summary.txt` |
FAST=`grep -c "^run: .*testreport.* '*-fast'*" $dir/summary.txt` |
154 |
if test "x$FAST" = x0 ; then |
if test "x$FAST" = x0 ; then |
165 |
UR4=`grep -c "^run: .*testreport.* -ur4 " $dir/summary.txt` |
UR4=`grep -c "^run: .*testreport.* -ur4 " $dir/summary.txt` |
166 |
fi |
fi |
167 |
fi |
fi |
168 |
if test "x$ADJOINT" = xtrue ; then |
if test "x$ADJOINT" = xtrue ; then |
169 |
kind="adjoint" ; order='000' |
kind="adjoint" ; order='000' |
170 |
|
elif test "x$TANGLIN" = xtrue ; then |
171 |
|
kind="tang-lin" ; order='001' |
172 |
elif test "x$RESTART" = x0 ; then |
elif test "x$RESTART" = x0 ; then |
173 |
kind="forward" ; order='001' |
kind="forward" ; order='002' |
174 |
else |
else |
175 |
kind="restart" ; order='002' |
kind="restart" ; order='003' |
176 |
fi |
fi |
177 |
if test "x$UR4" = x1 ; then |
if test "x$UR4" = x1 ; then |
178 |
OPTFILE="${OPTFILE}.use_r4" |
OPTFILE="${OPTFILE}.use_r4" |
222 |
if test $num -gt 0 ; then |
if test $num -gt 0 ; then |
223 |
|
|
224 |
# swap colors |
# swap colors |
225 |
ctmp=$color |
ctmp=$color |
226 |
color=$ncolor |
color=$ncolor |
227 |
ncolor=$ctmp |
ncolor=$ctmp |
228 |
|
|
229 |
keys=`cat ./mlist | cut -d " " -f 1 | sort | uniq` |
keys=`cat ./mlist | cut -d " " -f 1 | sort | uniq` |
230 |
|
|