/[MITgcm]/MITgcm/tools/do_tst_2+2
ViewVC logotype

Diff of /MITgcm/tools/do_tst_2+2

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

revision 1.7 by jmc, Thu Dec 16 20:15:21 2010 UTC revision 1.8 by jmc, Sat Jan 15 19:16:32 2011 UTC
# Line 145  fi Line 145  fi
145  for xx in $LIST  for xx in $LIST
146  do  do
147    echo ==============================================================================    echo ==============================================================================
148      if [ $mpi -ge 1 ] ; then
149        NP_MPI=2
150        mpi_size=$xx/build/SIZE.h.mpi
151        if test -f $mpi_size ; then
152          px=`grep '^     & *nPx *=' $mpi_size | sed 's/^     & *nPx *= *//' | sed 's/, *$//'`
153          py=`grep '^     & *nPy *=' $mpi_size | sed 's/^     & *nPy *= *//' | sed 's/, *$//'`
154          pp=`expr $px \* $py` > /dev/null 2>&1 ; out=$?
155          if test "x$out" = x0 ; then NP_MPI=$pp ; fi
156        fi
157        rCommand=`echo $COMMAND | sed "s/-np * XX /-np $NP_MPI /"`
158      else
159        rCommand=$COMMAND
160      fi
161    listD='run '`(cd $xx/results ; ls output.*.txt 2> /dev/null | sed 's/^output\./tr_run./g' | sed 's/\.txt$//g' )`    listD='run '`(cd $xx/results ; ls output.*.txt 2> /dev/null | sed 's/^output\./tr_run./g' | sed 's/\.txt$//g' )`
162    for yy in $listD    for yy in $listD
163    do    do
# Line 177  do Line 190  do
190          $SCRIPT $scrArg >> outp.tst_2+2.log 2>&1          $SCRIPT $scrArg >> outp.tst_2+2.log 2>&1
191          out=$?          out=$?
192        else        else
193          echo "$SCRIPT $scrArg -command \"$COMMAND\"" >> outp.tst_2+2.log          echo "$SCRIPT $scrArg -command \"$rCommand\"" >> outp.tst_2+2.log
194          echo ' ' >> outp.tst_2+2.log          echo ' ' >> outp.tst_2+2.log
195          $SCRIPT $scrArg -command "$COMMAND" >> outp.tst_2+2.log 2>&1          $SCRIPT $scrArg -command "$rCommand" >> outp.tst_2+2.log 2>&1
196          out=$?          out=$?
197        fi        fi
198        case $out in        case $out in

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

  ViewVC Help
Powered by ViewVC 1.1.22