| 304 |
|
|
| 305 |
#INDIR="/net/orwell/export/export-9/mitgcm-testing/results/$PERIOD" |
#INDIR="/net/orwell/export/export-9/mitgcm-testing/results/$PERIOD" |
| 306 |
INDIR="/u/u0/httpd/html/testing/results/$PERIOD" |
INDIR="/u/u0/httpd/html/testing/results/$PERIOD" |
| 307 |
#INDIR="/export/export-7/u/u2/jmc/mitgcm/test_web/results/$PERIOD" |
#INDIR="/u/u2/jmc/mitgcm/test_web/results/$PERIOD" |
| 308 |
|
|
| 309 |
#- a short summary of this checking : |
#- a short summary of this checking : |
| 310 |
OUTPSUM=`echo $LASTDAY | sed 's/^20../_/'` |
OUTPSUM=`echo $LASTDAY | sed 's/^20../_/'` |
| 422 |
keys=`cat ./slist | cut -d " " -f 1 | sort | uniq` |
keys=`cat ./slist | cut -d " " -f 1 | sort | uniq` |
| 423 |
|
|
| 424 |
for key in $keys ; do |
for key in $keys ; do |
| 425 |
ctot=`expr $ctot + 1` |
ctot=`expr $ctot + 1` |
| 426 |
sline=`grep "^$key " ./slist | head -1` |
sline=`grep "^$key " ./slist | head -1` |
| 427 |
sdir=`echo $sline | cut -d " " -f 5` |
sdir=`echo $sline | cut -d " " -f 5` |
| 428 |
type=`echo $sline | cut -d " " -f 4` |
type=`echo $sline | cut -d " " -f 4` |
| 463 |
xx=`( echo 5 ; sed -n '/^ OPTFILE=/=' $outp ) | tail -1` |
xx=`( echo 5 ; sed -n '/^ OPTFILE=/=' $outp ) | tail -1` |
| 464 |
sed "1,$xx d" $outp | sed '/^[YN] [YN] [YN] [YN]/ s/ \. //g' \ |
sed "1,$xx d" $outp | sed '/^[YN] [YN] [YN] [YN]/ s/ \. //g' \ |
| 465 |
| grep -v '^[A-S][a-t]* time: ' > tmpfp |
| grep -v '^[A-S][a-t]* time: ' > tmpfp |
| 466 |
#-- re-order list of exp (according to local "sort" order) |
#-- check if list of exp are the same (and in the same order) |
| 467 |
listD=`grep '^[YN] [YN] [YN] [YN]' tmpfs | awk '{print $NF}' | sort` |
sed 's/ (e=.*, w=.*)$//' tmpfs > tmpfn |
| 468 |
for xx in $listD |
listDs=`grep '^[YN] [YN] [YN] [YN]' tmpfn | awk '{print $NF}'` |
| 469 |
do |
#mv -f tmpfn tmpfs |
| 470 |
sed "/ $xx\$/d" tmpfs > tmpfn |
rm -f tmpfn |
| 471 |
sed -n "/ $xx\$/p" tmpfs >> tmpfn |
sed 's/ (e=.*, w=.*)$//' tmpfp > tmpfn |
| 472 |
mv tmpfn tmpfs |
listDp=`grep '^[YN] [YN] [YN] [YN]' tmpfn | awk '{print $NF}'` |
| 473 |
done |
#mv -f tmpfn tmpfp |
| 474 |
listD=`grep '^[YN] [YN] [YN] [YN]' tmpfp | awk '{print $NF}' | sort` |
rm -f tmpfn |
| 475 |
for xx in $listD |
#echo "listDs='$listDs'" ; echo "listDp='$listDp'" |
| 476 |
do |
if test "$listDs" != "$listDp" ; then |
| 477 |
sed "/ $xx\$/d" tmpfp > tmpfn |
if test $dBug = 't' ; then echo ' -> re-order list of exp' ; fi |
| 478 |
sed -n "/ $xx\$/p" tmpfp >> tmpfn |
#-- re-order list of exp (according to local "sort" order) |
| 479 |
mv tmpfn tmpfp |
listDs=`echo "$listDs" | sort` |
| 480 |
done |
for xx in $listDs ; do |
| 481 |
|
sed -e "/ $xx\$/d" -e "/ $xx /d" tmpfs > tmpfn |
| 482 |
|
sed -n -e "/ $xx\$/p" -e "/ $xx /p" tmpfs >> tmpfn |
| 483 |
|
mv -f tmpfn tmpfs |
| 484 |
|
done |
| 485 |
|
listDp=`echo "$listDp" | sort` |
| 486 |
|
for xx in $listDp ; do |
| 487 |
|
sed -e "/ $xx\$/d" -e "/ $xx /d" tmpfp > tmpfn |
| 488 |
|
sed -n -e "/ $xx\$/p" -e "/ $xx /p" tmpfp >> tmpfn |
| 489 |
|
mv -f tmpfn tmpfp |
| 490 |
|
done |
| 491 |
|
#else |
| 492 |
|
# echo 'same list of exp => skip re-ordering' |
| 493 |
|
fi |
| 494 |
echo -n "=== diff $sdir $pdir :" | tee -a $OUTPFIL |
echo -n "=== diff $sdir $pdir :" | tee -a $OUTPFIL |
| 495 |
diff tmpfs tmpfp > tmpdf |
diff tmpfs tmpfp > tmpdf |
| 496 |
yy=$? |
yy=$? |