/[MITgcm]/mitgcm.org/front_content/make_summary
ViewVC logotype

Diff of /mitgcm.org/front_content/make_summary

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

revision 1.77 by jmc, Fri Apr 5 21:15:06 2013 UTC revision 1.78 by jmc, Thu Aug 22 21:32:54 2013 UTC
# Line 64  OUTDIR="/u/u0/httpd/html/testing/summary Line 64  OUTDIR="/u/u0/httpd/html/testing/summary
64  OUTFILE=$OUTDIR"/output_"$PERIOD".html"  OUTFILE=$OUTDIR"/output_"$PERIOD".html"
65  res_url="http://mitgcm.org/testing/"  res_url="http://mitgcm.org/testing/"
66    
67    #TMP=./mksum_$$
68    #- try to put temporary files in system-local /tmp dir
69    TMP=/tmp/mksum_$$
70    touch $TMP ; retVal=$?
71    if [ $retVal -eq 0 ] ; then
72      if test ! -r $TMP ; then TMP=./mksum_$$ ; fi
73    else
74      TMP=./mksum_$$
75    fi
76    rm -f $TMP
77    # echo "temp files: $TMP"
78    
79  #  Create the links in $OUTFILE :  #  Create the links in $OUTFILE :
80  echo "Creating the \"latest\" file for each machine: "  echo "Creating the \"latest\" file for each machine: "
81  the_date=`date`  the_date=`date`
# Line 88  ncolor="#bbddff" Line 100  ncolor="#bbddff"
100  MACHINES="aces- acesgrid baudelaire dickens danton beagle"  MACHINES="aces- acesgrid baudelaire dickens danton beagle"
101  MACHINES="$MACHINES pleiades iblade sx8 uv100 solasrv stomp weber"  MACHINES="$MACHINES pleiades iblade sx8 uv100 solasrv stomp weber"
102    
103  ( cd $INDIR ; ls -1 -t */summary.txt | sed 's/\/summary.txt//' ) > ./dir_all  ( cd $INDIR ; ls -1 -t */summary.txt | sed 's/\/summary.txt//' ) > $TMP.dir_all
104    
105  MALL=`cat ./dir_all | sed -e 's|_| |g' | awk '{print $2}' | sort | uniq`  MALL=`cat $TMP.dir_all | sed -e 's|_| |g' | awk '{print $2}' | sort | uniq`
106  for madd in $MALL ; do  for madd in $MALL ; do
107      present=0      present=0
108      for m in $MACHINES ; do      for m in $MACHINES ; do
# Line 107  for mname in $MACHINES ; do Line 119  for mname in $MACHINES ; do
119    
120      echo "  $mname"      echo "  $mname"
121    
122      dir_list=`grep $mname ./dir_all`      dir_list=`grep $mname $TMP.dir_all`
123      echo -n "" > ./mlist      echo -n "" > $TMP.mlist
124    
125      for i in $dir_list ; do      for i in $dir_list ; do
126    
# Line 238  for mname in $MACHINES ; do Line 250  for mname in $MACHINES ; do
250          DAY=`cat ./ms_tmp | awk '(length($1)==8 && substr($1,0,2)=="20")'`          DAY=`cat ./ms_tmp | awk '(length($1)==8 && substr($1,0,2)=="20")'`
251          rm -f ./ms_tmp          rm -f ./ms_tmp
252    
253          echo "$OPTFILE$order $DAY $OPTFILE $kind $i $t_pass:$t_tot" >> ./mlist          echo "$OPTFILE$order $DAY $OPTFILE $kind $i $t_pass:$t_tot" >> $TMP.mlist
254    
255      done      done
256    
257      # helpful for debugging      # helpful for debugging
258      # cat ./mlist      # cat $TMP.mlist
259    
260      #  Do we have any data?  If so, create the latest pointer.      #  Do we have any data?  If so, create the latest pointer.
261      num=`wc -l ./mlist | awk '{print $1}'`      num=`wc -l $TMP.mlist | awk '{print $1}'`
262      if test $num -gt 0 ; then      if test $num -gt 0 ; then
263    
264          # swap colors          # swap colors
# Line 254  for mname in $MACHINES ; do Line 266  for mname in $MACHINES ; do
266          color=$ncolor          color=$ncolor
267          ncolor=$ctmp          ncolor=$ctmp
268    
269          keys=`cat ./mlist | cut -d " " -f 1 | sort | uniq`          keys=`cat $TMP.mlist | cut -d " " -f 1 | sort | uniq`
270    
271          for key in $keys ; do          for key in $keys ; do
272              tline=`grep "^$key " ./mlist | head -1`              tline=`grep "^$key " $TMP.mlist | head -1`
273              ratio=`echo $tline | cut -d " " -f 6`              ratio=`echo $tline | cut -d " " -f 6`
274              ldir=`echo $tline | cut -d " " -f 5`              ldir=`echo $tline | cut -d " " -f 5`
275              kind=`echo $tline | cut -d " " -f 4`              kind=`echo $tline | cut -d " " -f 4`
# Line 301  MITgcm/tools/example_scripts</a>.</p> Line 313  MITgcm/tools/example_scripts</a>.</p>
313    
314  EOF  EOF
315    
316  rm -f ./dir_all ./mlist  rm -f $TMP.dir_all $TMP.mlist
317    
318  #- put the file in place  #- put the file in place
319  chgrp gcmpack $OUTFILE  chgrp gcmpack $OUTFILE

Legend:
Removed from v.1.77  
changed lines
  Added in v.1.78

  ViewVC Help
Powered by ViewVC 1.1.22