/[MITgcm]/MITgcm_contrib/test_scripts/ref_machine/test_villon
ViewVC logotype

Diff of /MITgcm_contrib/test_scripts/ref_machine/test_villon

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

revision 1.1 by jmc, Fri Feb 2 14:35:57 2018 UTC revision 1.4 by jmc, Wed Jun 13 17:47:51 2018 UTC
# Line 20  ulimit -s unlimited Line 20  ulimit -s unlimited
20  #  MPI test (for now, only with gfortran)  #  MPI test (for now, only with gfortran)
21    source $HOME/bin/openmpi.sh    source $HOME/bin/openmpi.sh
22    
23  #- method to acces CVS:  #- method to access CVS:
24  # cmdCVS='cvs -d :pserver:cvsanon@mitgcm.org:/u/gcmpack'  # cmdCVS='cvs -d :pserver:cvsanon@mitgcm.org:/u/gcmpack'
25  # cmdCVS='cvs -d /u/gcmpack'  # cmdCVS='cvs -d /u/gcmpack'
26    export CVS_RSH=ssh    export CVS_RSH=ssh
27    cmdCVS='cvs -q -d :ext:jmc@mitgcm.org:/u/gcmpack'    cmdCVS='cvs -q -d :ext:jmc@mitgcm.org:/u/gcmpack'
28    
29  #- and which GitHub repository to use:  #- which GitHub repository to use and how to access it:
30    git_repo='MITgcm';  git_code='MITgcm'    git_repo='MITgcm';  git_code='MITgcm'
31   #git_repo='altMITgcm'; #git_code='MITgcm66h'   #git_repo='altMITgcm'; #git_code='MITgcm66h'
32    #--
33      git_repo="https://github.com/$git_repo"
34     #git_repo="git://github.com/$git_repo"
35     #git_repo="git@github.com:$git_repo"
36    
37    
38  # checkOut=3 : clone from GitHub and make a new copy (if sepDir)  # checkOut=3 : clone from GitHub and make a new copy (if sepDir)
39  #   =2 : update (git pull) repo  and make a new copy code  (switch to 2 if no repo)  #   =2 : update (git pull) repo  and make a new copy code  (switch to 2 if no repo)
# Line 91  if [ $checkOut -ge 2 ] ; then Line 96  if [ $checkOut -ge 2 ] ; then
96    cd $tdir    cd $tdir
97    
98    #---- Making a new clone or updating existing one:    #---- Making a new clone or updating existing one:
99    if test -e MITgcm/.git/config ; then    if [ $checkOut -eq 2 ] ; then
100      echo MITgcm/.git/config 'exist'      if test -e MITgcm/.git/config ; then
101    else         echo MITgcm/.git/config 'exist'
102      echo -n MITgcm/.git/config 'missing ; '      else
103      checkOut=3         echo -n MITgcm/.git/config 'missing ; '
104      echo "will get new clone ( checkOut=$checkOut )"         checkOut=3
105           echo "will get new clone ( checkOut=$checkOut )"
106        fi
107    fi    fi
108    if [ $checkOut -eq 3 ] ; then    if [ $checkOut -eq 3 ] ; then
109        test -e $git_code && rm -rf $git_code
110      echo -n "Make a clone of $git_code from repo: $git_repo ..."      echo -n "Make a clone of $git_code from repo: $git_repo ..."
111      git clone https://github.com/$git_repo/${git_code}.git 2> $tmpFil      git clone $git_repo/${git_code}.git 2> $tmpFil
112      retVal=$?      retVal=$?
113      if test $retVal = 0 ; then      if test $retVal = 0 ; then
114         echo ' --> done!'         echo ' --> done!'
# Line 114  if [ $checkOut -ge 2 ] ; then Line 122  if [ $checkOut -ge 2 ] ; then
122    else    else
123      echo "Updating current clone ( $git_code ) ..."      echo "Updating current clone ( $git_code ) ..."
124      ( cd $git_code ; git pull )      ( cd $git_code ; git pull )
125      echo ' --> done!'      retVal=$?
126        if test $retVal = 0 ; then
127           echo ' --> done!'
128        else
129           echo "git pull on '"`hostname`"' fail (return val=$retVal) => exit"
130           exit 3
131        fi
132    fi    fi
133    
134    #---- making a new working copy: MITgcm_today    #---- making a new working copy: MITgcm_today
# Line 257  do Line 271  do
271            ( cd verification/${exp2add}            ( cd verification/${exp2add}
272              ln -s ../../../other_input/core2_cnyf . )              ln -s ../../../other_input/core2_cnyf . )
273          fi          fi
274          if test $exp2add = 'shelfice_remeshing' ; then         #if test $exp2add = 'shelfice_remeshing' ; then
275            echo " link dir 'other_input/remeshing_code' to 'extra_code'" | tee -a $tdir/output_$tt         #  echo " link dir 'other_input/remeshing_code' to 'extra_code'" | tee -a $tdir/output_$tt
276            ( cd verification/${exp2add}         #  ( cd verification/${exp2add}
277              ln -s ../../../other_input/remeshing_code extra_code )         #    ln -s ../../../other_input/remeshing_code extra_code )
278          fi         #fi
279        done        done
280      fi      fi
281    else    else

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

  ViewVC Help
Powered by ViewVC 1.1.22