/[MITgcm]/MITgcm/tools/example_scripts/csail/test_baudelaire
ViewVC logotype

Diff of /MITgcm/tools/example_scripts/csail/test_baudelaire

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

revision 1.22 by jmc, Fri Jan 29 14:15:28 2016 UTC revision 1.27 by jmc, Wed Jun 29 16:27:23 2016 UTC
# Line 2  Line 2 
2    
3  # $Header$  # $Header$
4    
5  #  Test script for MITgcm that should work on most of the csail.mit.edu  #  Test script for MITgcm that should work on most of the csail.mit.edu Linux machines.
6  #  Linux machines.  
7    tst_grp=0 ; if test $# = 1 ; then tst_grp=$1 ; fi
8    if test $tst_grp != 'a' -a $tst_grp != 'b' ; then
9      echo "missing or invalid argument (expect: 'a' or 'b') ==> exit"
10      exit 1
11    fi
12    
13  # defaults  # defaults
14  #export PATH="$PATH:/usr/local/bin"  #export PATH="$PATH:/usr/local/bin"
# Line 32  cmdCVS='cvs -d /u/gcmpack' Line 37  cmdCVS='cvs -d /u/gcmpack'
37  dInWeek=`date +%a`  dInWeek=`date +%a`
38  outDir=`hostname -s`  outDir=`hostname -s`
39  TESTDIR="/scratch/jmc/test_${outDir}"  TESTDIR="/scratch/jmc/test_${outDir}"
40    outDir="${outDir}-${tst_grp}"
41  MC=13  MC=13
 checkOut=2  
42  sepDir=1  sepDir=1
43  option=  option=
44  #tst_list='g7a adm mpa g77 gfo+rs mth mp2+rs mpi ifc'  #tst_list='g7a adm mpa g77 gfo+rs mth mp2+rs mpi ifc'
45  #if test "x$dInWeek" = xSun ; then tst_list="$tst_list tlm oad" ; fi  #if test "x$dInWeek" = xSun ; then tst_list="$tst_list tlm oad" ; fi
46  outDir="${outDir}-a"  if test $tst_grp = 'a' ; then
47  tst_list='g7a mpa mth mp2+rs mpi oad'   checkOut=2
48  #outDir="${outDir}-b"   tst_list='g7a mpa mth mp2+rs mpi oad'
49  #tst_list='adm g77 gfo+rs ifc'  else
50  #if test "x$dInWeek" = xSun ; then tst_list="$tst_list tlm" ; fi   checkOut=3
51     tst_list='adm g77 gfo+rs ifc'
52     if test "x$dInWeek" = xSun ; then tst_list="$tst_list tlm" ; fi
53    fi
54    echo " test: $outDir ; list='$tst_list'"
55    
56  #option="-nc" ; checkOut=1  #option="-nc" ; checkOut=1
57  #option="-q"  ; checkOut=1  #option="-q"  ; checkOut=1
# Line 92  do Line 101  do
101    #- define list of additional experiences to test:    #- define list of additional experiences to test:
102    addExp=''    addExp=''
103    if test $typ = 'mp2' -o $typ = 'ifc' ; then    if test $typ = 'mp2' -o $typ = 'ifc' ; then
104      addExp='offline_cheapaml atm_gray'      addExp="offline_cheapaml atm_gray"
105      fi
106      if test $typ = 'gfo' -o $typ = 'ifc' ; then
107        addExp="$addExp global_oce_biogeo_bling"
108      fi
109      if test $typ = 'mpi' ; then
110        addExp="$addExp global_oce_cs32"
111      fi
112      if test $typ = 'gfo' ; then
113        addExp="$addExp shelfice_remeshing"
114    fi    fi
115    #- check day and time:    #- check day and time:
116    curDay=`date +%d` ; curHour=`date +%H`    curDay=`date +%d` ; curHour=`date +%H`
# Line 143  do Line 161  do
161          echo " add dir: $exp2add (from Contrib:verification_other)"          echo " add dir: $exp2add (from Contrib:verification_other)"
162          ( cd verification ;  $cmdCVS co -P -d $exp2add \          ( cd verification ;  $cmdCVS co -P -d $exp2add \
163               MITgcm_contrib/verification_other/$exp2add > /dev/null )               MITgcm_contrib/verification_other/$exp2add > /dev/null )
164            if test $exp2add = 'global_oce_cs32' ; then
165              echo " link dir 'other_input/gael_oce_cs32_input' to 'input_fields'"
166              ( cd verification/global_oce_cs32
167                ln -s ../../../other_input/gael_oce_cs32_input input_fields )
168            fi
169        done        done
170      fi      fi
171    else    else

Legend:
Removed from v.1.22  
changed lines
  Added in v.1.27

  ViewVC Help
Powered by ViewVC 1.1.22