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

Diff of /mitgcm.org/scripts/testing_score

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

revision 1.1 by jmc, Tue Nov 1 16:45:30 2022 UTC revision 1.2 by jmc, Tue Nov 1 16:52:32 2022 UTC
# Line 17  if test $xx != x ; then YYMM=`date +%Y%m Line 17  if test $xx != x ; then YYMM=`date +%Y%m
17  ( cd $INDIR ; ls -1 *_${YYMM}??_*/summary.txt | sed 's/\/summary.txt//' ) > ./dir_all  ( cd $INDIR ; ls -1 *_${YYMM}??_*/summary.txt | sed 's/\/summary.txt//' ) > ./dir_all
18  #( cd $INDIR ; ls -1 -t *_${YYMM}??_*/summary.txt | sed 's/\/summary.txt//' ) > ./dir_all  #( cd $INDIR ; ls -1 -t *_${YYMM}??_*/summary.txt | sed 's/\/summary.txt//' ) > ./dir_all
19    
 #MALL=`cat ./dir_all | sed -e 's|_| |g' | awk '{print $2}' | sort | uniq`  
 MALL=`cat ./dir_all | sed -e 's|_| |g' | sed -e 's|\-| |'  | sed -e 's|\+| |' | awk '{print $2}' | sort | uniq`  
20  addHost=0  addHost=0
21  if [ $# -gt 0 ] ; then if test $1 = '+h' ; then  if [ $# -gt 0 ] ; then if test $1 = '+h' ; then
22    addHost=1 ; shift    addHost=1 ; shift
23  fi ; fi  fi ; fi
 #echo $MALL  
24  if test $# = 0 ; then  if test $# = 0 ; then
25    MACHINES=$MALL    #-- local way of getting all platforms:
26     #MALL=`cat ./dir_all | sed -e 's|_| |g' | sed -e 's|\-| |'  | sed -e 's|\+| |' \
27     #         | awk '{print $2}' | sort | uniq`
28     #echo $MALL
29     #MACHINES=$MALL
30      #-- as done in "make_summary" (front_content/) and "check_outp" (scripts/):
31      MALL=`cat ./dir_all | sed -e 's|_| |g' | awk '{print $2}' | sort | uniq`
32      MACHINES="villon batsi engaging1 engaging- svante"
33      MACHINES="$MACHINES glacier ollie pleiades"
34      for madd in $MALL ; do
35         present=0
36         for m in $MACHINES ; do
37            echo $madd | grep $m > /dev/null 2>&1
38            RETVAL=$?
39            test $RETVAL = 0  &&  present=1
40            continue
41         done
42         test $present = 0  &&  MACHINES="$MACHINES $madd"
43      done
44  else  else
45    MACHINES=$*    MACHINES=$*
46  fi  fi

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.22