Changeset 2445 for trunk/MESOSCALE


Ignore:
Timestamp:
Jan 15, 2021, 11:52:03 PM (4 years ago)
Author:
aslmd
Message:

meso_install.sh, replaced svn by gitlab. each new folder contains an instance of the code positioned on a branch named similarly as the folder.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MESOSCALE/LMD_MM_MARS/SIMU/meso_install.sh

    r2444 r2445  
    1111## name of the folder
    1212name="MESORUN"
    13 ## SVN version
    14 version="HEAD"
    15 version="1520"
     13## git version or tag
     14version="tags/mesoscale-jezero"
     15version="tags/gcm-mesoini-ok"
     16#version="4ef63693c40cf8aa316d0664635a33126fe97d03"
    1617################################
    1718
     
    3334# -n [name]        --> name of the folder to be created
    3435# -g               --> only compile GCM (for tests)
    35 # -v [# (or) HEAD] --> svn version
     36# -v [version/tag] --> git commit or tag
    3637# -o               --> old GCM+meso version
    3738# -l               --> LES version (only new physics)
     
    4647## server for sources
    4748where_is_svn="http://svn.lmd.jussieu.fr/Planeto/trunk/"
     49## server for sources
     50where_is_git="git@gitlab.in2p3.fr:la-communaut-des-mod-les-atmosph-riques-plan-taires/git-trunk.git"
     51## depth of git checkout
     52depth=500 # should be enough and avoid too big a directory
    4853## grid definition for GCM
    4954dimgcm="64x48x29"
     
    7580## create code repo
    7681## ----------------
    77 echo "*** get SVN repository"
     82echo "*** get gitlab repository"
    7883\rm $refrepo/code
    79 svn -q co -N $where_is_svn $refrepo/code
    80 
     84git clone --depth $depth $where_is_git $refrepo/code
     85echo "*** set a branch with same name as repo for version "$version
     86cd $refrepo/code
     87git checkout $version -b $name
    8188
    8289###################################
     
    8996 then
    9097   log=$refrepo/code/MESOSCALE/LMDZ.MARS/logcompile_gcm
    91    echo "*** get and compile GCM code version "$version
    92    cd $refrepo/code
    93    svn update -r $version MESOSCALE > /dev/null
     98   echo "*** compile GCM"
    9499   cd $refrepo/code/MESOSCALE/LMDZ.MARS
    95100   ln -sf makegcm_$fortcom makegcm
     
    97102 fi
    98103 
    99 else
    100 
    101  ## ------------
    102  ## get GCM code
    103  ## ------------
    104  echo "*** get GCM code version "$version
    105  cd $refrepo/code
    106  # at least get Mars physics (always needed)
    107  svn -q update -r $version LMDZ.MARS
    108  svn -q update -r $version LMDZ.COMMON
     104fi
    109105
    110106## START compiling GCM PART
     
    156152fi
    157153
    158 fi
    159 
    160154###################################
    161155################################### MESO
     
    178172## get and make mesoscale
    179173## ----------------------
    180 echo "*** get and compile mesoscale version "$version
    181 cd $refrepo/code
    182 svn update -r $version MESOSCALE > /dev/null
     174echo "*** compile mesoscale"
    183175#
    184176if [[ "${les}" == "on" ]]
Note: See TracChangeset for help on using the changeset viewer.