10 |
echo |
echo |
11 |
echo "where possible OPTIONS are:" |
echo "where possible OPTIONS are:" |
12 |
echo " (-help|-h) print usage" |
echo " (-help|-h) print usage" |
13 |
|
echo " (-mpi) use MPI input files" |
14 |
echo " (-optfile=|-of=)STRING list of optfiles to use" |
echo " (-optfile=|-of=)STRING list of optfiles to use" |
15 |
echo " (-a|-addr)STRING list of email recipients" |
echo " (-a|-addr)STRING list of email recipients" |
16 |
echo " (DEF=\"edhill@mitgcm.org\")" |
echo " (DEF=\"edhill@mitgcm.org\")" |
406 |
MPACKDIR="../tools/mpack-1.6" |
MPACKDIR="../tools/mpack-1.6" |
407 |
MPACK="$MPACKDIR/mpack" |
MPACK="$MPACKDIR/mpack" |
408 |
COMMAND="make output.txt" |
COMMAND="make output.txt" |
409 |
|
MPI=f |
410 |
|
|
411 |
echo -n "parsing options... " |
echo -n "parsing options... " |
412 |
|
|
452 |
-command=* | --command=*) |
-command=* | --command=*) |
453 |
COMMAND=$ac_optarg ;; |
COMMAND=$ac_optarg ;; |
454 |
|
|
455 |
|
-mpi) MPI=t ;; |
456 |
-verbose) verbose=2 ;; |
-verbose) verbose=2 ;; |
457 |
-debug) debug=1 ;; |
-debug) debug=1 ;; |
458 |
-clean) clean=1 ;; |
-clean) clean=1 ;; |
537 |
| tee -a $SUMMARY |
| tee -a $SUMMARY |
538 |
continue |
continue |
539 |
fi |
fi |
540 |
|
|
541 |
|
# Is this an MPI run? |
542 |
|
if test "x$MPI" = xt ; then |
543 |
|
if test ! -r $dir"/code/CPP_EEOPTIONS.h_mpi" -o ! -r $dir"/code/SIZE.h_mpi" ; then |
544 |
|
echo | tee -a $SUMMARY |
545 |
|
echo "can't read \"$dir/code/CPP_EEOPTIONS.h_mpi\" or \"$dir/code/SIZE.h_mpi\"" \ |
546 |
|
| tee -a $SUMMARY |
547 |
|
continue |
548 |
|
else |
549 |
|
cp $dir"/code/CPP_EEOPTIONS.h_mpi" $dir"/code/CPP_EEOPTIONS.h" |
550 |
|
cp $dir"/code/SIZE.h_mpi" $dir"/code/SIZE.h" |
551 |
|
fi |
552 |
|
else |
553 |
|
if test -r $dir"/code/CPP_EEOPTIONS.h_nompi" ; then |
554 |
|
cp $dir"/code/CPP_EEOPTIONS.h_nompi" $dir"/code/CPP_EEOPTIONS.h" |
555 |
|
fi |
556 |
|
if test -r $dir"/code/SIZE.h_nompi" ; then |
557 |
|
cp $dir"/code/SIZE.h_nompi" $dir"/code/SIZE.h" |
558 |
|
fi |
559 |
|
fi |
560 |
|
|
561 |
# Create an output dir for each OPTFILE/tdir combination |
# Create an output dir for each OPTFILE/tdir combination |
562 |
CDIR=$DRESULTS"/"$DRESULTS"_"$NDIR |
CDIR=$DRESULTS"/"$DRESULTS"_"$NDIR |
563 |
mkdir $CDIR |
mkdir $CDIR |