13 |
echo " (-help|-h) print usage" |
echo " (-help|-h) print usage" |
14 |
echo " (-mpi) use MPI input files" |
echo " (-mpi) use MPI input files" |
15 |
echo " (-ieee|-noieee) if possible, use IEEE compiler flags" |
echo " (-ieee|-noieee) if possible, use IEEE compiler flags" |
16 |
echo " (DEF=\"noieee\")" |
echo " (DEF=\"-ieee\")" |
17 |
echo " (-optfile=|-of=)STRING list of optfiles to use" |
echo " (-optfile=|-of=)STRING list of optfiles to use" |
18 |
echo " (-a|-addr) STRING list of email recipients" |
echo " (-a|-addr) STRING list of email recipients" |
19 |
echo " (DEF=\"edhill@mitgcm.org\")" |
echo " (DEF=\"edhill@mitgcm.org\")" |
27 |
echo " (DEF=\"make output.txt\")" |
echo " (DEF=\"make output.txt\")" |
28 |
echo " (-m|-make) STRING command to use for \"make\"" |
echo " (-m|-make) STRING command to use for \"make\"" |
29 |
echo " (DEF=\"make\")" |
echo " (DEF=\"make\")" |
30 |
|
echo " (-j) JOBS use \"make -j JOBS\" for parallel builds" |
31 |
echo " (-clean) *ONLY* run \"make CLEAN\"" |
echo " (-clean) *ONLY* run \"make CLEAN\"" |
32 |
echo " (-quick|-q) same as \"-nogenmake -noclean -nodepend\"" |
echo " (-quick|-q) same as \"-nogenmake -noclean -nodepend\"" |
33 |
echo " (-nogenmake|-ng) skip the genmake stage" |
echo " (-nogenmake|-ng) skip the genmake stage" |
34 |
echo " (-noclean|-nc) skip the \"make clean\" stage" |
echo " (-noclean|-nc) skip the \"make clean\" stage" |
35 |
echo " (-nodepend|-nd) skip the \"make depend\" stage" |
echo " (-nodepend|-nd) skip the \"make depend\" stage" |
36 |
|
echo " (-deldir|-dd) on success, delete the output directory" |
37 |
echo |
echo |
38 |
echo "and where STRING follows a whitespace-delimited format" |
echo "and where STRING follows a whitespace-delimited format" |
39 |
echo "such as:" |
echo "such as:" |
46 |
# build the mpack utility |
# build the mpack utility |
47 |
build_mpack() |
build_mpack() |
48 |
{ |
{ |
49 |
echo -n "building the mpack utility... " |
printf "building the mpack utility... " |
50 |
if test ! -x "$MPACKDIR/mpack" ; then |
if test ! -x "$MPACKDIR/mpack" ; then |
51 |
if test ! -d $MPACKDIR ; then |
if test ! -d $MPACKDIR ; then |
52 |
echo |
echo |
56 |
echo |
echo |
57 |
HAVE_MPACK=f |
HAVE_MPACK=f |
58 |
fi |
fi |
59 |
echo -n "building mpack... " |
printf "building mpack... " |
60 |
if test "x$CC" = x ; then |
if test "x$CC" = x ; then |
61 |
export CC=cc |
export CC=cc |
62 |
fi |
fi |
79 |
|
|
80 |
testoutput_for_prop() |
testoutput_for_prop() |
81 |
{ |
{ |
82 |
# testoutput_for_prop dir s1 label subdir |
# testoutput_for_prop dir s1 label subdir extension |
83 |
# |
# |
84 |
# compares files in $dir/$subdir/output.txt and $dir/results/output.txt |
# compares files in $dir/$subdir/output.txt and $dir/results/output.txt |
85 |
# using search strings s1 and text label |
# using search strings s1 and text label |
101 |
return 99 |
return 99 |
102 |
fi |
fi |
103 |
if [ $debug -gt 0 ]; then |
if [ $debug -gt 0 ]; then |
104 |
echo testoutput_for_prop: grep "$2" $1/results/output.txt 1>&2 |
echo testoutput_for_prop: grep "$2" $1/results/output.txt$5 1>&2 |
105 |
fi |
fi |
106 |
grep "$2" $1/results/output.txt | sed 's/.*=//' | cat -n > tmp2.txt |
grep "$2" $1/results/output.txt$5 | sed 's/.*=//' | cat -n > tmp2.txt |
107 |
lncnt=`wc -l tmp2.txt | awk '{print $1}' ` |
lncnt=`wc -l tmp2.txt | awk '{print $1}' ` |
108 |
if [ $lncnt -lt 3 ]; then |
if [ $lncnt -lt 3 ]; then |
109 |
if [ $verbose -gt 0 ]; then |
if [ $verbose -gt 0 ]; then |
173 |
|
|
174 |
testoutput() |
testoutput() |
175 |
{ |
{ |
176 |
# testoutput directory subdir |
# testoutput directory subdir extension |
177 |
# |
# |
178 |
# test output in "directory" |
# test output in "directory" |
179 |
if test "x$ADM" = x ; then |
if test "x$ADM" = x ; then |
180 |
if [ $debug -gt 0 ]; then |
if [ $debug -gt 0 ]; then |
181 |
echo testoutput: testoutput_for_prop $1 cg2d_init_res 1>&2 |
echo testoutput: testoutput_for_prop $1 cg2d_init_res 1>&2 |
182 |
fi |
fi |
183 |
testoutput_for_prop $1 "cg2d_init_res" "cg2d init. residual" $2; cg2dres=$? |
testoutput_for_prop $1 "cg2d_init_res" "cg2d init. residual" $2 $3; cg2dres=$? |
184 |
if [ $debug -gt 0 ]; then |
if [ $debug -gt 0 ]; then |
185 |
echo testoutput: cg2dres=$cg2dres 1>&2 |
echo testoutput: cg2dres=$cg2dres 1>&2 |
186 |
fi |
fi |
187 |
testoutput_for_prop $1 "dynstat_theta_min" "theta minimum" $2; tmin=$? |
testoutput_for_prop $1 "dynstat_theta_min" "theta minimum" $2 $3; tmin=$? |
188 |
testoutput_for_prop $1 "dynstat_theta_max" "theta maximum" $2; tmax=$? |
testoutput_for_prop $1 "dynstat_theta_max" "theta maximum" $2 $3; tmax=$? |
189 |
testoutput_for_prop $1 "dynstat_theta_mean" "theta mean" $2; tmean=$? |
testoutput_for_prop $1 "dynstat_theta_mean" "theta mean" $2 $3; tmean=$? |
190 |
testoutput_for_prop $1 "dynstat_theta_sd" "theta s.d." $2; tsd=$? |
testoutput_for_prop $1 "dynstat_theta_sd" "theta s.d." $2 $3; tsd=$? |
191 |
testoutput_for_prop $1 "dynstat_salt_min" "salt minimum" $2; smin=$? |
testoutput_for_prop $1 "dynstat_salt_min" "salt minimum" $2 $3; smin=$? |
192 |
testoutput_for_prop $1 "dynstat_salt_max" "salt maximum" $2; smax=$? |
testoutput_for_prop $1 "dynstat_salt_max" "salt maximum" $2 $3; smax=$? |
193 |
testoutput_for_prop $1 "dynstat_salt_mean" "salt mean" $2; smean=$? |
testoutput_for_prop $1 "dynstat_salt_mean" "salt mean" $2 $3; smean=$? |
194 |
testoutput_for_prop $1 "dynstat_salt_sd" "salt s.d." $2; ssd=$? |
testoutput_for_prop $1 "dynstat_salt_sd" "salt s.d." $2 $3; ssd=$? |
195 |
testoutput_for_prop $1 "dynstat_uvel_min" "U minimum" $2; umin=$? |
testoutput_for_prop $1 "dynstat_uvel_min" "U minimum" $2 $3; umin=$? |
196 |
testoutput_for_prop $1 "dynstat_uvel_max" "U maximum" $2; umax=$? |
testoutput_for_prop $1 "dynstat_uvel_max" "U maximum" $2 $3; umax=$? |
197 |
testoutput_for_prop $1 "dynstat_uvel_mean" "U mean" $2; umean=$? |
testoutput_for_prop $1 "dynstat_uvel_mean" "U mean" $2 $3; umean=$? |
198 |
testoutput_for_prop $1 "dynstat_uvel_sd" "U s.d." $2; usd=$? |
testoutput_for_prop $1 "dynstat_uvel_sd" "U s.d." $2 $3; usd=$? |
199 |
testoutput_for_prop $1 "dynstat_vvel_min" "V minimum" $2; vmin=$? |
testoutput_for_prop $1 "dynstat_vvel_min" "V minimum" $2 $3; vmin=$? |
200 |
testoutput_for_prop $1 "dynstat_vvel_max" "V maximum" $2; vmax=$? |
testoutput_for_prop $1 "dynstat_vvel_max" "V maximum" $2 $3; vmax=$? |
201 |
testoutput_for_prop $1 "dynstat_vvel_mean" "V mean" $2; vmean=$? |
testoutput_for_prop $1 "dynstat_vvel_mean" "V mean" $2 $3; vmean=$? |
202 |
testoutput_for_prop $1 "dynstat_vvel_sd" "V s.d." $2; vsd=$? |
testoutput_for_prop $1 "dynstat_vvel_sd" "V s.d." $2 $3; vsd=$? |
203 |
dashnum $cg2dres $tmin $tmax $tmean $tsd $smin $smax $smean $ssd \ |
dashnum $cg2dres $tmin $tmax $tmean $tsd $smin $smax $smean $ssd \ |
204 |
$umin $umax $umean $usd $vmin $vmax $vmean $vsd |
$umin $umax $umean $usd $vmin $vmax $vmean $vsd |
205 |
else |
else |
213 |
if test "x$NOGENMAKE" = xt ; then |
if test "x$NOGENMAKE" = xt ; then |
214 |
echo "genmake skipped!" |
echo "genmake skipped!" |
215 |
else |
else |
216 |
GENMAKE2="$BASH ../../../tools/genmake2" |
if test "x$BASH" = x ; then |
217 |
|
GENMAKE2="../../../tools/genmake2" |
218 |
|
else |
219 |
|
GENMAKE2="$BASH ../../../tools/genmake2 -bash $BASH" |
220 |
|
fi |
221 |
( |
( |
222 |
cd $1; |
cd $1; |
223 |
command="$GENMAKE2 -ds -m $MAKE" |
command="$GENMAKE2 -ds -m $MAKE" |
236 |
printf 'genmake ... ' 1>&2 |
printf 'genmake ... ' 1>&2 |
237 |
$command > make.log 2>&1 |
$command > make.log 2>&1 |
238 |
RETVAL=$? |
RETVAL=$? |
239 |
cp Makefile $CDIR |
# Reduce the size of the testing emails! |
240 |
|
head -100 Makefile > $CDIR/Makefile_head |
241 |
if test "x$RETVAL" != x0 ; then |
if test "x$RETVAL" != x0 ; then |
242 |
tail make.log |
tail make.log |
243 |
echo "genmakemodel: genmake failed" 1>&2 |
echo "genmakemodel: genmake failed" 1>&2 |
309 |
if test -r Makefile ; then |
if test -r Makefile ; then |
310 |
printf 'make ... ' 1>&2 |
printf 'make ... ' 1>&2 |
311 |
if test "x$ADM" = x ; then |
if test "x$ADM" = x ; then |
312 |
$MAKE >> make.log 2>&1 |
if test "x$JOBS" = x ; then |
313 |
|
$MAKE >> make.log 2>&1 |
314 |
|
else |
315 |
|
$MAKE -j $JOBS >> make.log 2>&1 |
316 |
|
fi |
317 |
else |
else |
318 |
$MAKE adall >> make.log 2>&1 |
$MAKE adall >> make.log 2>&1 |
319 |
fi |
fi |
340 |
code_dir=$2 |
code_dir=$2 |
341 |
BUILD_DIR=$dir/$3 |
BUILD_DIR=$dir/$3 |
342 |
CODE_DIR=$dir/$code_dir |
CODE_DIR=$dir/$code_dir |
343 |
|
|
344 |
# These are files that should replace their counter-part when using -mpi |
# These are files that should replace their counter-part when using -mpi |
345 |
MPI_FILES=`(cd $CODE_DIR; find . -name "*_mpi")` |
MPI_FILES=`(cd $CODE_DIR; find . -name "*_mpi")` |
346 |
|
|
355 |
RETVAL=$? |
RETVAL=$? |
356 |
if test "x$RETVAL" != x0 ; then |
if test "x$RETVAL" != x0 ; then |
357 |
if ! test -f $BUILD_DIR/$i ; then |
if ! test -f $BUILD_DIR/$i ; then |
358 |
#echo Linking $name to $i |
#echo Linking $name to $i |
359 |
(cd $BUILD_DIR; ln -sf ../$code_dir/$i $name) |
(cd $BUILD_DIR; ln -sf ../$code_dir/$i $name) |
360 |
fi |
fi |
361 |
fi |
fi |
362 |
done |
done |
363 |
else |
else |
364 |
# NO: We undo any _mpi symbolically linked files |
# NO: We undo any _mpi symbolically linked files |
365 |
for ii in $MPI_FILES ; do |
for ii in $MPI_FILES ; do |
366 |
i=`echo $ii | sed 's:^\./::'` |
i=`echo $ii | sed 's:^\./::'` |
367 |
name=`echo $i | sed 's:_mpi::' ` |
name=`echo $i | sed 's:_mpi::' ` |
368 |
if test -L $BUILD_DIR/$name ; then |
if test -L $BUILD_DIR/$name ; then |
369 |
linktarg=`(cd $BUILD_DIR; readlink $name)` |
cmp $BUILD_DIR/$name "../$code_dir/$name"_mpi > /dev/null 2>&1 |
370 |
if test $linktarg = "../$code_dir/$name"_mpi ; then |
RETVAL=$? |
371 |
#echo Un-linking $name from $linktarg |
if test "x$RETVAL" = x0 ; then |
372 |
|
#echo Un-linking $name from $linktarg |
373 |
rm -f $BUILD_DIR/$name |
rm -f $BUILD_DIR/$name |
374 |
fi |
fi |
375 |
fi |
fi |
421 |
cd $1 |
cd $1 |
422 |
printf 'runmodel ... ' 1>&2 |
printf 'runmodel ... ' 1>&2 |
423 |
# make output.txt |
# make output.txt |
424 |
$COMMAND >> run.log 2>&1 |
echo |
425 |
|
rm -f run.log |
426 |
|
# echo "COMMAND='$COMMAND'" |
427 |
|
# echo "pwd='"`pwd`"'" |
428 |
|
( eval $COMMAND ) > run.log 2>&1 |
429 |
RETVAL=$? |
RETVAL=$? |
430 |
if test "x$RETVAL" = x0 ; then |
if test "x$RETVAL" = x0 ; then |
431 |
|
tail run.log |
432 |
echo successful 1>&2 |
echo successful 1>&2 |
433 |
if test "x$ADM" = x ; then |
# === Reduce the size of the testing emails! |
434 |
cp output.txt $CDIR"/output.txt" |
# if test "x$ADM" = x ; then |
435 |
else |
# cp output.txt $CDIR"/output.txt" |
436 |
cp output.txt_adm $CDIR"/output.txt_adm" |
# else |
437 |
fi |
# cp output.txt_adm $CDIR"/output.txt_adm" |
438 |
|
# fi |
439 |
return 0 |
return 0 |
440 |
else |
else |
441 |
tail run.log |
tail run.log |
450 |
{ |
{ |
451 |
# create codelet for comparing model output |
# create codelet for comparing model output |
452 |
|
|
453 |
echo -n "creating the comparison code... " |
printf "creating the comparison code... " |
454 |
cat > tmp_cmpnum.c <<EOF |
cat > tmp_cmpnum.c <<EOF |
455 |
#include <stdio.h> |
#include <stdio.h> |
456 |
#include <math.h> |
#include <math.h> |
457 |
int main( int argc, char** argv ) { |
int main( int argc, char** argv ) { |
458 |
int linnum,best; |
int linnum,best,lncnt; |
459 |
double a,b,diff; |
double a,b,diff; |
460 |
best = -16; |
best = -16; |
461 |
while( 1 ) { |
lncnt = 0; |
462 |
|
while( 1 & (lncnt+=1) < 999 ) { |
463 |
scanf("%d", &linnum); |
scanf("%d", &linnum); |
464 |
if (linnum == -1) break; |
if (linnum == -1) break; |
465 |
scanf("%lf", &a); scanf("%lf", &b); |
scanf("%lf", &a); scanf("%lf", &b); |
475 |
} |
} |
476 |
} |
} |
477 |
} |
} |
478 |
|
if (lncnt == 999) best=-29; |
479 |
printf("%d\n", -best); |
printf("%d\n", -best); |
480 |
return 0; |
return 0; |
481 |
} |
} |
556 |
expts='' |
expts='' |
557 |
# ieee=1 |
# ieee=1 |
558 |
|
|
559 |
IEEE= |
IEEE=true |
560 |
if test "x$MITGCM_IEEE" != x ; then |
if test "x$MITGCM_IEEE" != x ; then |
561 |
IEEE=$MITGCM_IEEE |
IEEE=$MITGCM_IEEE |
562 |
fi |
fi |
577 |
MPACK="$MPACKDIR/mpack" |
MPACK="$MPACKDIR/mpack" |
578 |
COMMAND= |
COMMAND= |
579 |
MAKE=make |
MAKE=make |
580 |
|
JOBS= |
581 |
MPI=f |
MPI=f |
582 |
|
DELDIR= |
583 |
|
|
584 |
ADM= |
ADM= |
585 |
|
|
586 |
echo -n "parsing options... " |
printf "parsing options... " |
587 |
|
|
588 |
ac_prev= |
ac_prev= |
589 |
for ac_option ; do |
for ac_option ; do |
632 |
-make=* | --make=*) |
-make=* | --make=*) |
633 |
MAKE=$ac_optarg ;; |
MAKE=$ac_optarg ;; |
634 |
|
|
635 |
|
-j) ac_prev=JOBS ;; |
636 |
|
-j=*) JOBS=$ac_optarg ;; |
637 |
|
|
638 |
-clean | --clean) |
-clean | --clean) |
639 |
CLEANUP=t ;; |
CLEANUP=t ;; |
640 |
|
|
658 |
-debug) debug=1 ;; |
-debug) debug=1 ;; |
659 |
-quiet) verbose=0 ;; |
-quiet) verbose=0 ;; |
660 |
|
|
661 |
|
-deldir | -dd) DELDIR=t ;; |
662 |
|
|
663 |
-*) |
-*) |
664 |
echo "Error: unrecognized option: "$ac_option |
echo "Error: unrecognized option: "$ac_option |
665 |
usage |
usage |
693 |
fi |
fi |
694 |
|
|
695 |
if test "x$COMMAND" = x ; then |
if test "x$COMMAND" = x ; then |
696 |
COMMAND="make output.txt" |
COMMAND="$MAKE output.txt" |
697 |
fi |
fi |
698 |
|
|
699 |
echo "OK" |
echo "OK" |
702 |
createcodelet |
createcodelet |
703 |
|
|
704 |
# build the mpack utility |
# build the mpack utility |
705 |
build_mpack |
if test "x$ADDRESSES" = xNONE -o "x$ADDRESSES" = x ; then |
706 |
|
echo "skipping mpack build" |
707 |
|
else |
708 |
|
build_mpack |
709 |
|
fi |
710 |
|
|
711 |
# Create a uniquely named directory to store results |
# Create a uniquely named directory to store results |
712 |
MACH=`hostname` |
MACH=`hostname` |
726 |
exit 1 |
exit 1 |
727 |
fi |
fi |
728 |
SUMMARY="$DRESULTS/summary.txt" |
SUMMARY="$DRESULTS/summary.txt" |
729 |
echo -n "Start time: " >> $SUMMARY |
printf "Start time: " >> $SUMMARY |
730 |
start_date=`date` |
start_date=`date` |
731 |
echo $start_date > $SUMMARY |
echo $start_date > $SUMMARY |
732 |
|
|
815 |
linkdata $use_seperate_build $dir/$rundir |
linkdata $use_seperate_build $dir/$rundir |
816 |
fi |
fi |
817 |
|
|
818 |
|
# Check whether there are "extra runs" for this testdir |
819 |
|
extra_runs= |
820 |
|
if test "x$ADM" = x -a "x$use_seperate_build" = x1 ; then |
821 |
|
ex_run_dirs=`( cd $dir ; echo input.* )` |
822 |
|
echo "ex_run_dirs='$ex_run_dirs'" |
823 |
|
for exd in $ex_run_dirs ; do |
824 |
|
name=`echo $exd | sed -e 's/input.//g'` |
825 |
|
outf="$dir/results/output.txt.$name" |
826 |
|
if test -f $outf -a -r $outf ; then |
827 |
|
extra_runs="$extra_runs $name" |
828 |
|
fi |
829 |
|
done |
830 |
|
fi |
831 |
|
|
832 |
if test "x$ADM" = x ; then |
if test "x$ADM" = x ; then |
833 |
code_dir=code |
code_dir=code |
834 |
CODE_DIR=$dir/code |
CODE_DIR=$dir/code |
838 |
fi |
fi |
839 |
BUILD_DIR=$dir/$builddir |
BUILD_DIR=$dir/$builddir |
840 |
|
|
841 |
if test ! -r $CODE_DIR"/SIZE.h_mpi" ; then |
if test ! -r $CODE_DIR"/SIZE.h_mpi" -a "x$MPI" = "xt" ; then |
842 |
echo "can't find \"$CODE_DIR/SIZE.h_mpi\" -- skipping $dir" |
echo "can't find \"$CODE_DIR/SIZE.h_mpi\" -- skipping $dir" |
843 |
continue |
continue |
844 |
fi |
fi |
871 |
echo |
echo |
872 |
if test "x$ADM" = x ; then |
if test "x$ADM" = x ; then |
873 |
fres=`formatresults $dir ${genmake:-N} ${makedepend:-N} ${make:-N} ${run:-N} $results` |
fres=`formatresults $dir ${genmake:-N} ${makedepend:-N} ${make:-N} ${run:-N} $results` |
874 |
|
echo |
875 |
|
echo "$fres" >> $SUMMARY |
876 |
|
echo "fresults='$fres'" > $CDIR"/summary.txt" |
877 |
|
echo "MACH='$MACH'" >> $CDIR"/summary.txt" |
878 |
|
echo "UNAMEA='$UNAMEA'" >> $CDIR"/summary.txt" |
879 |
|
echo "DATE='$DATE'" >> $CDIR"/summary.txt" |
880 |
|
echo "tdir='$dir'" >> $CDIR"/summary.txt" |
881 |
|
|
882 |
|
OLD_COMMAND=$COMMAND |
883 |
|
COMMAND="./mitgcmuv > output.txt" |
884 |
|
for ex in $extra_runs ; do |
885 |
|
test -e "$dir/tr_run.$ex" && rm -rf "$dir/tr_run.$ex" |
886 |
|
mkdir "$dir/tr_run.$ex" |
887 |
|
links=`( cd "$dir/input" > /dev/null 2>&1 ; ls -1 | grep -v CVS )` |
888 |
|
( |
889 |
|
cd "$dir/tr_run.$ex" |
890 |
|
for i in $links; do |
891 |
|
ln -s ../input/$i $i |
892 |
|
done |
893 |
|
) |
894 |
|
links=`( cd "$dir/input.$ex" > /dev/null 2>&1 ; ls -1 | grep -v CVS )` |
895 |
|
( |
896 |
|
cd "$dir/tr_run.$ex" |
897 |
|
for i in $links; do |
898 |
|
test -e $i && rm -f $i |
899 |
|
ln -s ../input.$ex/$i $i |
900 |
|
done |
901 |
|
ln -s ../$builddir/mitgcmuv mitgcmuv |
902 |
|
) |
903 |
|
runmodel $dir/tr_run.$ex && run=Y \ |
904 |
|
&& results=`testoutput $dir tr_run.$ex "."$ex` |
905 |
|
fres=`printf '%s %s %s %s' ${genmake:-N} ${makedepend:-N} ${make:-N} ${run:-N}` |
906 |
|
fres=`formatresults $dir ${genmake:-N} ${makedepend:-N} ${make:-N} ${run:-N} $results` |
907 |
|
fres="$fres.$ex" |
908 |
|
echo |
909 |
|
echo "$fres" >> $SUMMARY |
910 |
|
echo "fresults='$fres'" > $CDIR"/summary.txt" |
911 |
|
echo "MACH='$MACH'" >> $CDIR"/summary.txt" |
912 |
|
echo "UNAMEA='$UNAMEA'" >> $CDIR"/summary.txt" |
913 |
|
echo "DATE='$DATE'" >> $CDIR"/summary.txt" |
914 |
|
echo "tdir='$dir'" >> $CDIR"/summary.txt" |
915 |
|
done |
916 |
|
COMMAND=$OLD_COMMAND |
917 |
else |
else |
918 |
fres=`printf '%s %s %s %s' ${genmake:-N} ${makedepend:-N} ${make:-N} ${run:-N}` |
fres=`printf '%s %s %s %s' ${genmake:-N} ${makedepend:-N} ${make:-N} ${run:-N}` |
919 |
fres=$fres"$results $dir" |
fres=$fres"$results $dir" |
920 |
|
echo |
921 |
|
echo "$fres" >> $SUMMARY |
922 |
|
echo "fresults='$fres'" > $CDIR"/summary.txt" |
923 |
|
echo "MACH='$MACH'" >> $CDIR"/summary.txt" |
924 |
|
echo "UNAMEA='$UNAMEA'" >> $CDIR"/summary.txt" |
925 |
|
echo "DATE='$DATE'" >> $CDIR"/summary.txt" |
926 |
|
echo "tdir='$dir'" >> $CDIR"/summary.txt" |
927 |
fi |
fi |
|
echo |
|
|
echo "$fres" >> $SUMMARY |
|
|
echo "fresults='$fres'" > $CDIR"/summary.txt" |
|
|
echo "MACH='$MACH'" >> $CDIR"/summary.txt" |
|
|
echo "UNAMEA='$UNAMEA'" >> $CDIR"/summary.txt" |
|
|
echo "DATE='$DATE'" >> $CDIR"/summary.txt" |
|
|
echo "tdir='$dir'" >> $CDIR"/summary.txt" |
|
928 |
|
|
929 |
echo "-------------------------------------------------------------------------------" |
echo "-------------------------------------------------------------------------------" |
930 |
|
|
931 |
done |
done |
932 |
|
|
933 |
echo -n "Start time: " >> $SUMMARY |
printf "Start time: " >> $SUMMARY |
934 |
echo $start_date >> $SUMMARY |
echo $start_date >> $SUMMARY |
935 |
echo -n "End time: " >> $SUMMARY |
printf "End time: " >> $SUMMARY |
936 |
date >> $SUMMARY |
date >> $SUMMARY |
937 |
|
|
938 |
# If addresses were supplied and mpack built successfully, then try |
# If addresses were supplied and mpack built successfully, then try |
943 |
if test "x$HAVE_MPACK" = xt ; then |
if test "x$HAVE_MPACK" = xt ; then |
944 |
tar -cf $DRESULTS".tar" $DRESULTS > /dev/null 2>&1 \ |
tar -cf $DRESULTS".tar" $DRESULTS > /dev/null 2>&1 \ |
945 |
&& gzip $DRESULTS".tar" \ |
&& gzip $DRESULTS".tar" \ |
946 |
&& $MPACK -s MITgcm-test -m 1500000 $DRESULTS".tar.gz" $ADDRESSES |
&& $MPACK -s MITgcm-test -m 3555000 $DRESULTS".tar.gz" $ADDRESSES |
947 |
RETVAL=$? |
RETVAL=$? |
948 |
if test "x$RETVAL" != x0 ; then |
if test "x$RETVAL" != x0 ; then |
949 |
echo |
echo |
973 |
cat $SUMMARY > tr_out.txt |
cat $SUMMARY > tr_out.txt |
974 |
fi |
fi |
975 |
|
|
976 |
|
if test "x$DELDIR" = xt ; then |
977 |
|
rm -rf $DRESULTS |
978 |
|
fi |
979 |
|
|