Changeset 5992


Ignore:
Timestamp:
Jan 3, 2026, 2:14:20 PM (9 days ago)
Author:
Laurent Fairhead
Message:

Modifications to checkout the 1D that is now on gitlab server
EV

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BOL/script_install/install_lmdz.sh

    r5991 r5992  
    6666
    6767  if [[ $filename =~ .*\.(ba)?sh ]]; then chmod +x "$filename"; fi
     68}
     69
     70#-----------------------------------------------------------------------------
     71function mygit {
     72#-----------------------------------------------------------------------------
     73# Get a file from LMDZ git repository
     74
     75local ingitlmdz=$1
     76local outdirname=$2
     77
     78# Check if Git is installed
     79if command -v git >/dev/null 2>&1; then
     80    git --version
     81else
     82    echo "Git is not installed and is needed to download the 1D version of LMDZ."
     83    echo "Please install Git"
     84fi
     85
     86 git clone https://gitlab.in2p3.fr/ipsl/projets/lmdz/$ingitlmdz $outdirname
     87
    6888}
    6989
     
    11641184    if [[ $SCM = 1 ]]; then
    11651185        cd "$MODEL"
    1166         myget 1D/1D.tar.gz
    1167         tar xf 1D.tar.gz
     1186        mygit 1D 1D
    11681187        cd 1D
    11691188        if [[ $rad = "oldrad" ]]; then
Note: See TracChangeset for help on using the changeset viewer.