/[MITgcm]/mitgcm.org/scripts/check_outp
ViewVC logotype

Diff of /mitgcm.org/scripts/check_outp

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.33 by jmc, Tue Sep 4 20:34:31 2012 UTC revision 1.34 by jmc, Sat Sep 8 14:25:13 2012 UTC
# Line 102  make_resdir_list() Line 102  make_resdir_list()
102              ADJOINT=              ADJOINT=
103              TANGLIN=              TANGLIN=
104              RESTART=0              RESTART=0
105              EXTRA=0              EXTRA=
106              FAST=0              FAST=0
107              DVLP=0              DVLP=0
108              MPI=0              MPI=0
# Line 115  make_resdir_list() Line 115  make_resdir_list()
115                  eval $comm                  eval $comm
116                  RESTART=`grep -c 'test 2+2=4 summary' $dir/summary.txt`                  RESTART=`grep -c 'test 2+2=4 summary' $dir/summary.txt`
117                  comm=`grep '^run: .*testreport.* ' $dir/summary.txt`                  comm=`grep '^run: .*testreport.* ' $dir/summary.txt`
118                  EXTRA=`echo "$comm" | grep -c " -*-tdir\>"`                  EXTRA=`echo "$comm" | grep " -*-tdir\>" | sed -e "s/^.* -*-tdir\>//" -e "s/ -.*$//"`
119                  if test "x$EXTRA" = x0 ; then                  if test "x$EXTRA" = x ; then
120                     EXTRA=`echo "$comm" | grep -c " -*-t\>"`                      EXTRA=`echo "$comm" | grep " -*-t\>" | sed -e "s/^.*-*-t\>//" -e "s/ -.*$//"`
121                    fi
122                    if test "x$EXTRA" = x ; then EXTRA=0 ; else
123                        #echo -n "EXTRA=$EXTRA"
124                        nn0=`echo $EXTRA | sed "s/ *' *//g" | wc -w`
125                        nn1=`echo $EXTRA | sed "s/ *' *//g" | tr ' ' '\n' | grep -c "\<monod_"`
126                        nn2=`echo $EXTRA | sed "s/ *' *//g" | tr ' ' '\n' | grep -c "\<darwin_"`
127                        EXTRA=1
128                        if [ $nn1 -ge 2 ] ; then EXTRA=2 ; fi
129                        if [ $nn2 -ge 2 ] ; then EXTRA=3 ; fi
130                        #echo " : nn0=$nn0 ; nn1=$nn1 ; nn2=$nn2"
131                  fi                  fi
132                  FAST=`echo "$comm" | grep -c " -*-fast\>"`                  FAST=`echo "$comm" | grep -c " -*-fast\>"`
133                  if test "x$FAST" = x0 ; then                  if test "x$FAST" = x0 ; then
# Line 143  make_resdir_list() Line 153  make_resdir_list()
153              else              else
154                  kind="restart" ; order=3                  kind="restart" ; order=3
155              fi              fi
156              if test "x$EXTRA" != x0 ; then              order=`expr $order + 10 \* $EXTRA`
                 order=`expr $order + 4`  
             fi  
157              order=`printf '%3.3i' $order`              order=`printf '%3.3i' $order`
158              if test "x$UR4" = x1 ; then              if test "x$UR4" = x1 ; then
159                  OPTFILE="${OPTFILE}.use_r4"                  OPTFILE="${OPTFILE}.use_r4"

Legend:
Removed from v.1.33  
changed lines
  Added in v.1.34

  ViewVC Help
Powered by ViewVC 1.1.22