1 |
#!/bin/bash |
#! /usr/bin/env bash |
2 |
# |
# |
3 |
# $Header$ |
# $Header$ |
4 |
# $Name$ |
# $Name$ |
81 |
echo testoutput_for_prop: grep "$2" $1/$4/output.txt 1>&2 |
echo testoutput_for_prop: grep "$2" $1/$4/output.txt 1>&2 |
82 |
fi |
fi |
83 |
if [ -r $1/$4/output.txt ]; then |
if [ -r $1/$4/output.txt ]; then |
84 |
grep "$2" $1/$4/output.txt | sed 's/.*=//' | nl > tmp1.txt |
grep "$2" $1/$4/output.txt | sed 's/.*=//' | cat -n > tmp1.txt |
85 |
lncnt=`wc -l tmp1.txt | awk '{print $1}' ` |
lncnt=`wc -l tmp1.txt | awk '{print $1}' ` |
86 |
if [ $lncnt -lt 3 ]; then |
if [ $lncnt -lt 3 ]; then |
87 |
if [ $verbose -gt 0 ]; then |
if [ $verbose -gt 0 ]; then |
96 |
if [ $debug -gt 0 ]; then |
if [ $debug -gt 0 ]; then |
97 |
echo testoutput_for_prop: grep "$2" $1/results/output.txt 1>&2 |
echo testoutput_for_prop: grep "$2" $1/results/output.txt 1>&2 |
98 |
fi |
fi |
99 |
grep "$2" $1/results/output.txt | sed 's/.*=//' | nl > tmp2.txt |
grep "$2" $1/results/output.txt | sed 's/.*=//' | cat -n > tmp2.txt |
100 |
lncnt=`wc -l tmp2.txt | awk '{print $1}' ` |
lncnt=`wc -l tmp2.txt | awk '{print $1}' ` |
101 |
if [ $lncnt -lt 3 ]; then |
if [ $lncnt -lt 3 ]; then |
102 |
if [ $verbose -gt 0 ]; then |
if [ $verbose -gt 0 ]; then |
156 |
if [ $debug -gt 0 ]; then |
if [ $debug -gt 0 ]; then |
157 |
echo testoutput: cg2dres=$cg2dres 1>&2 |
echo testoutput: cg2dres=$cg2dres 1>&2 |
158 |
fi |
fi |
|
|
|
159 |
testoutput_for_prop $1 "dynstat_theta_min" "theta minimum" $2; tmin=$? |
testoutput_for_prop $1 "dynstat_theta_min" "theta minimum" $2; tmin=$? |
160 |
testoutput_for_prop $1 "dynstat_theta_max" "theta maximum" $2; tmax=$? |
testoutput_for_prop $1 "dynstat_theta_max" "theta maximum" $2; tmax=$? |
161 |
testoutput_for_prop $1 "dynstat_theta_mean" "theta mean" $2; tmean=$? |
testoutput_for_prop $1 "dynstat_theta_mean" "theta mean" $2; tmean=$? |
292 |
# linkdata flag |
# linkdata flag |
293 |
# |
# |
294 |
# symbolically link data files to run directory |
# symbolically link data files to run directory |
295 |
if [ $1 -ne 0 ]; then |
if test "x$1" = x1 ; then |
296 |
( cd $2 ; ln -sf ../input/* . ) |
( |
297 |
|
cd $2 |
298 |
|
files=`( cd ../input ; ls -1 | grep -v CVS )` |
299 |
|
for i in $files ; do |
300 |
|
if test ! -d "../input/"$i ; then |
301 |
|
ln -sf "../input/"$i $i |
302 |
|
fi |
303 |
|
done |
304 |
|
) |
305 |
fi |
fi |
306 |
} |
} |
307 |
|
|
516 |
-nodepend | --nodepend | -nd | --nd) |
-nodepend | --nodepend | -nd | --nd) |
517 |
NODEPEND=t ;; |
NODEPEND=t ;; |
518 |
|
|
519 |
-mpi) MPI=true ;; |
-mpi) MPI=t ;; |
520 |
|
|
521 |
-ieee) IEEE=true ;; |
-ieee) IEEE=true ;; |
522 |
-noieee) IEEE= ;; |
-noieee) IEEE= ;; |
579 |
exit 1 |
exit 1 |
580 |
fi |
fi |
581 |
SUMMARY="$DRESULTS/summary.txt" |
SUMMARY="$DRESULTS/summary.txt" |
582 |
date > $SUMMARY |
echo -n "Start time: " >> $SUMMARY |
583 |
|
start_date=`date` |
584 |
|
echo $start_date > $SUMMARY |
585 |
cat << EOF >> $SUMMARY |
cat << EOF >> $SUMMARY |
586 |
T S U V |
T S U V |
587 |
G D M c m s m s m s m s |
G D M c m s m s m s m s |
642 |
unset genmake makedepend make run |
unset genmake makedepend make run |
643 |
results='-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --' |
results='-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --' |
644 |
|
|
645 |
if [ -r $dir/build ]; then |
builddir="input" |
646 |
seperatebuilddir=1 |
rundir="input" |
647 |
builddir=build |
use_seperate_build=0 |
648 |
rundir=build |
if test -d $dir/build -a -r $dir/build ; then |
649 |
( cd $dir/build; ln -sf ../input/* . ) |
builddir="build" |
650 |
else |
rundir="build" |
651 |
seperatebuilddir=0 |
use_seperate_build=1 |
652 |
builddir=input |
linkdata $use_seperate_build $dir/$rundir |
|
rundir=input |
|
653 |
fi |
fi |
654 |
|
|
655 |
CODE_DIR=$dir/code |
CODE_DIR=$dir/code |
704 |
&& makeclean $dir/$builddir \ |
&& makeclean $dir/$builddir \ |
705 |
&& makedependmodel $dir/$builddir && makedepend=Y \ |
&& makedependmodel $dir/$builddir && makedepend=Y \ |
706 |
&& makemodel $dir/$builddir && make=Y \ |
&& makemodel $dir/$builddir && make=Y \ |
707 |
&& linkdata $seperatebuilddir $dir/$rundir \ |
&& linkdata $use_seperate_build $dir/$rundir \ |
708 |
&& runmodel $dir/$builddir && run=Y \ |
&& runmodel $dir/$rundir && run=Y \ |
709 |
&& results=`testoutput $dir $rundir` |
&& results=`testoutput $dir $rundir` |
710 |
fi |
fi |
711 |
|
|
748 |
|
|
749 |
done |
done |
750 |
|
|
751 |
|
echo -n "Start time: " >> $SUMMARY |
752 |
|
echo $start_date >> $SUMMARY |
753 |
|
echo -n "End time: " >> $SUMMARY |
754 |
|
date >> $SUMMARY |
755 |
|
|
756 |
rm tmp_cmpnum.f a.out |
rm tmp_cmpnum.f a.out |
757 |
|
|
758 |
cat $SUMMARY |
if test "x$CLEANUP" != xt ; then |
759 |
|
cat $SUMMARY |
760 |
|
if test -e tr.out ; then |
761 |
|
mv tr.out tr.out.old |
762 |
|
fi |
763 |
|
cat $SUMMARY > tr.out |
764 |
|
fi |
765 |
|
|