450 |
if test "x$ADM" = x ; then |
if test "x$ADM" = x ; then |
451 |
files=`( cd ../input ; ls -1 | grep -v CVS )` |
files=`( cd ../input ; ls -1 | grep -v CVS )` |
452 |
for i in $files ; do |
for i in $files ; do |
453 |
if test ! -d "../input/"$i ; then |
if test ! -d "../input/"$i -a ! -f $i ; then |
454 |
ln -sf "../input/"$i $i |
ln -sf "../input/"$i $i |
455 |
fi |
fi |
456 |
done |
done |
636 |
HAVE_MPACK= |
HAVE_MPACK= |
637 |
MPACK="$MPACKDIR/mpack" |
MPACK="$MPACKDIR/mpack" |
638 |
COMMAND= |
COMMAND= |
639 |
MAKE=make |
if test "x$MAKE" = x ; then |
640 |
|
MAKE=make |
641 |
|
fi |
642 |
|
if test "x$CC" = x ; then |
643 |
|
CC=cc |
644 |
|
fi |
645 |
JOBS= |
JOBS= |
646 |
MPI=f |
MPI=f |
647 |
DELDIR= |
DELDIR= |
971 |
echo "tdir='$dir'" >> $CDIR"/summary.txt" |
echo "tdir='$dir'" >> $CDIR"/summary.txt" |
972 |
|
|
973 |
for ex in $extra_runs ; do |
for ex in $extra_runs ; do |
974 |
test -e "$dir/tr_run.$ex" && rm -rf "$dir/tr_run.$ex" |
test ! -e "$dir/tr_run.$ex" && mkdir "$dir/tr_run.$ex" |
975 |
mkdir "$dir/tr_run.$ex" |
for ldir in build input input.$ex ; do |
976 |
links=`( cd "$dir/input" > /dev/null 2>&1 ; ls -1 | grep -v CVS )` |
( |
977 |
( |
cd "$dir/$ldir" > /dev/null 2>&1 |
978 |
cd "$dir/tr_run.$ex" |
ls -1 2>/dev/null \ |
979 |
for i in $links; do |
| sed -e 's|^CVS$||g' | sed -e 's|^output.txt$||g' |
980 |
ln -s ../input/$i $i |
) > tr_exrun_links |
981 |
done |
( |
982 |
) |
cd "$dir/tr_run.$ex" |
983 |
links=`( cd "$dir/input.$ex" > /dev/null 2>&1 ; ls -1 | grep -v CVS )` |
cat ../../tr_exrun_links | while read i ; do |
984 |
( |
if test ! "x$i" = x ; then |
985 |
cd "$dir/tr_run.$ex" |
test -e $i && rm -f $i |
986 |
for i in $links; do |
ln -s "../"$ldir"/"$i $i |
987 |
test -e $i && rm -f $i |
fi |
988 |
ln -s ../input.$ex/$i $i |
done |
989 |
done |
) |
990 |
ln -s ../$builddir/mitgcmuv mitgcmuv |
test -e tr_exrun_links && rm -f tr_exrun_links |
991 |
) |
done |
992 |
runmodel $dir/tr_run.$ex && run=Y \ |
runmodel $dir/tr_run.$ex && run=Y \ |
993 |
&& results=`testoutput $dir tr_run.$ex "."$ex` |
&& results=`testoutput $dir tr_run.$ex "."$ex` |
994 |
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}` |