637 |
|
|
638 |
scandirs() |
scandirs() |
639 |
{ |
{ |
640 |
if [ $# -eq 0 ]; then |
if [ $# -eq 1 ]; then |
641 |
for arg in * ; do |
for arg in * ; do |
642 |
test -d $arg/input && echo $arg |
test -d $arg/$1 && echo $arg |
643 |
done |
done |
644 |
else |
else |
645 |
echo $* |
echo $* |
646 |
fi |
fi |
647 |
} |
} |
648 |
|
|
805 |
fi |
fi |
806 |
|
|
807 |
if test "x$TESTDIRS" = x ; then |
if test "x$TESTDIRS" = x ; then |
808 |
TESTDIRS=`scandirs` |
if test "x$ADM" = xt ; then |
809 |
|
TESTDIRS=`scandirs results_ad` |
810 |
|
else |
811 |
|
TESTDIRS=`scandirs results` |
812 |
|
fi |
813 |
fi |
fi |
814 |
|
|
815 |
if test "x$OPTFILE" = xNONE -a "x$MITGCM_OF" != x ; then |
if test "x$OPTFILE" = xNONE -a "x$MITGCM_OF" != x ; then |