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

Diff of /MITgcm_contrib/test_scripts/ref_machine/test_baudelaire

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

revision 1.2 by jmc, Thu Feb 1 16:38:45 2018 UTC revision 1.6 by jmc, Wed Jun 13 17:47:51 2018 UTC
# Line 22  ulimit -s unlimited Line 22  ulimit -s unlimited
22    export MPI_INC_DIR=$MPI_GCC_DIR/include    export MPI_INC_DIR=$MPI_GCC_DIR/include
23    export PATH="$PATH:$MPI_GCC_DIR/bin"    export PATH="$PATH:$MPI_GCC_DIR/bin"
24    
25  #- method to acces CVS:  #- method to access CVS:
26    cmdCVS='cvs -d :pserver:cvsanon@mitgcm.org:/u/gcmpack'    cmdCVS='cvs -d :pserver:cvsanon@mitgcm.org:/u/gcmpack'
27    cmdCVS='cvs -d /u/gcmpack'    cmdCVS='cvs -d /u/gcmpack'
28  # export CVS_RSH=ssh  # export CVS_RSH=ssh
29  # cmdCVS='cvs -q -d :ext:jmc@mitgcm.org:/u/gcmpack'  # cmdCVS='cvs -q -d :ext:jmc@mitgcm.org:/u/gcmpack'
30    
31  #- and which GitHub repository to use:  #- which GitHub repository to use and how to access it:
32    git_repo='MITgcm' ; git_code='MITgcm'    git_repo='MITgcm';  git_code='MITgcm'
33  # git_repo='altMITgcm' ; git_code='MITgcm66h'   #git_repo='altMITgcm'; #git_code='MITgcm66h'
34    #--
35     #git_repo="https://github.com/$git_repo"
36      git_repo="git://github.com/$git_repo"
37     #git_repo="git@github.com:$git_repo"
38    
39  # checkOut=3 : clone from GitHub and make a new copy (if sepDir)  # checkOut=3 : clone from GitHub and make a new copy (if sepDir)
40  #   =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 93  if [ $checkOut -ge 2 ] ; then Line 97  if [ $checkOut -ge 2 ] ; then
97    cd $tdir    cd $tdir
98    
99    #---- Making a new clone or updating existing one:    #---- Making a new clone or updating existing one:
100    if test -e MITgcm/.git/config ; then    if [ $checkOut -eq 2 ] ; then
101      echo MITgcm/.git/config 'exist'      if test -e MITgcm/.git/config ; then
102    else         echo MITgcm/.git/config 'exist'
103      echo -n MITgcm/.git/config 'missing ; '      else
104      checkOut=3         echo -n MITgcm/.git/config 'missing ; '
105      echo "will get new clone ( checkOut=$checkOut )"         checkOut=3
106           echo "will get new clone ( checkOut=$checkOut )"
107        fi
108    fi    fi
109    if [ $checkOut -eq 3 ] ; then    if [ $checkOut -eq 3 ] ; then
110        test -e $git_code && rm -rf $git_code
111      echo -n "Make a clone of $git_code from repo: $git_repo ..."      echo -n "Make a clone of $git_code from repo: $git_repo ..."
112      git clone https://github.com/$git_repo/${git_code}.git 2> $tmpFil      git clone $git_repo/${git_code}.git 2> $tmpFil
113      retVal=$?      retVal=$?
114      if test $retVal = 0 ; then      if test $retVal = 0 ; then
115         echo ' --> done!'         echo ' --> done!'
# Line 116  if [ $checkOut -ge 2 ] ; then Line 123  if [ $checkOut -ge 2 ] ; then
123    else    else
124      echo "Updating current clone ( $git_code ) ..."      echo "Updating current clone ( $git_code ) ..."
125      ( cd $git_code ; git pull )      ( cd $git_code ; git pull )
126      echo ' --> done!'      retVal=$?
127        if test $retVal = 0 ; then
128           echo ' --> done!'
129        else
130           echo "git pull on '"`hostname`"' fail (return val=$retVal) => exit"
131           exit 3
132        fi
133    fi    fi
134    
135    #---- making a new working copy: MITgcm_today    #---- making a new working copy: MITgcm_today
# Line 259  do Line 272  do
272            ( cd verification/${exp2add}            ( cd verification/${exp2add}
273              ln -s ../../../other_input/core2_cnyf . )              ln -s ../../../other_input/core2_cnyf . )
274          fi          fi
275          if test $exp2add = 'shelfice_remeshing' ; then         #if test $exp2add = 'shelfice_remeshing' ; then
276            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
277            ( cd verification/${exp2add}         #  ( cd verification/${exp2add}
278              ln -s ../../../other_input/remeshing_code extra_code )         #    ln -s ../../../other_input/remeshing_code extra_code )
279          fi         #fi
280        done        done
281      fi      fi
282    else    else

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

  ViewVC Help
Powered by ViewVC 1.1.22