--- mitgcm.org/scripts/check_outp 2011/08/19 20:38:19 1.30 +++ mitgcm.org/scripts/check_outp 2011/08/23 18:14:10 1.31 @@ -1,6 +1,6 @@ #! /usr/bin/env bash -# $Header: /home/ubuntu/mnt/e9_copy/mitgcm.org/scripts/check_outp,v 1.30 2011/08/19 20:38:19 jmc Exp $ +# $Header: /home/ubuntu/mnt/e9_copy/mitgcm.org/scripts/check_outp,v 1.31 2011/08/23 18:14:10 jmc Exp $ # # The purpose of this script is to compare # the latest output with the previous one (from the same platform with @@ -126,11 +126,12 @@ UR4=`grep -c "^run: .*testreport.* -ur4 " $dir/summary.txt` fi fi - if test "x$RESTART" = x0 ; then - kind="forward" - test "x$ADJOINT" = xtrue && kind="adjoint" + if test "x$ADJOINT" = xtrue ; then + kind="adjoint" ; order='000' + elif test "x$RESTART" = x0 ; then + kind="forward" ; order='001' else - kind="restart" + kind="restart" ; order='002' fi if test "x$UR4" = x1 ; then OPTFILE="${OPTFILE}.use_r4" @@ -154,9 +155,9 @@ day=`echo $ttt | sed -e 's|_| |g' |awk '{print $NF}'` if [ $day -lt $BEFORE ] ; then - echo "$OPTFILE$kind $day $OPTFILE $kind $i" >> ./plist + echo "$OPTFILE$order $day $OPTFILE $kind $i" >> ./plist elif [ $day -ge $FIRSTDAY -a $day -le $LASTDAY ] ; then - echo "$OPTFILE$kind $day $OPTFILE $kind $i" >> ./slist + echo "$OPTFILE$order $day $OPTFILE $kind $i" >> ./slist else if test $dBug = 't' ; then echo "discard day='$day' from: $i" | tee -a $OUTPFIL