Changeset 4178 for dynamico_lmdz


Ignore:
Timestamp:
Dec 19, 2019, 1:29:16 PM (5 years ago)
Author:
dubos
Message:

simple_physics : reorganization

Location:
dynamico_lmdz/simple_physics
Files:
16 added
2 moved

Legend:

Unmodified
Added
Removed
  • dynamico_lmdz/simple_physics/config/LMDZ/build_lmdz_phyparam.sh

    r4177 r4178  
    11#!/bin/bash
    2 
    32
    43function cmd_install_lmdz()
    54{
    6 # Installation du modele en mode de parallelisation mixte MIPxOpenMP
     5# Installation du modele en mode sequentiel
    76    echo "cmd_install_lmdz"
    8     NETCDF_ROOT=$(nc-config --prefix)
    9     echo "NETCDF root : $NETCDF_ROOT"
    107    wget -N http://www.lmd.jussieu.fr/~lmdz/pub/install_lmdz.sh
    118    export LANG=C # fixes issue with sed on MaxOSX
     
    1613    echo "Watch $PWD/install_lmdz_patched.log"
    1714    ./install_lmdz_patched.sh -parallel none -v $version >install_lmdz_patched.log 2>&1
    18 }
    19 
    20 function cmd_get_phyparam()
    21 {
    22     echo "cmd_get_phyparam"
    23     wget -N http://www.lmd.jussieu.fr/~hourdin/PARAM/phyparam.20191009.tar
    24     tar xvf phyparam.20191009.tar
    2515}
    2616
     
    3525    cd phyparam
    3626    ln -s ../phydev/* .
    37     ln -sf $ROOT/phyparam/* .
    3827    ln -sf $ROOT/phyparam/param/* .
    3928    cd ../dynphy_lonlat/phyparam
    4029    ln -s ../phydev/* .
    41     ln -sf $ROOT/dynphy_lonlat/phyparam/* .
     30    ln -sf $ROOT/phyparam/dynphy_lonlat/* .
    4231    cd $LMDZ
    4332    echo "./makelmdz_fcm -rrtm false  -v false -arch local -j 8 -p param -d 32x32x39 gcm" > compile.sh
     
    4635}
    4736
    48 
    49 function cmd_get_param()
    50 {
    51 # Recupération des parametres d'entree
    52     echo "cmd_get_param"
    53     cd $LMDZ
    54     wget -N http://www.lmd.jussieu.fr/~hourdin/PARAM/test_param.tar
    55     tar xvf test_param.tar
    56 }
    57 
    5837function cmd_()
    5938{
    60 #    cmd_get_phyparam
     39    rm -rf LMDZ$version install_lmdz.*
    6140    cmd_install_lmdz
    6241    cmd_patch_lmdz
    63     cmd_get_param
    64     echo puis lancer gcm.e sur TEST_PARAM
     42    echo "Now cd TEST_PARAM and execute ./gcm.e"
    6543}
    6644
    6745# On peut choisir la version de LMDZ a insitaller
    6846version=20191106.trunk
    69 ROOT=$(pwd)
    70 LMDZ=$ROOT/LMDZ$version/modipsl/modeles/LMDZ
     47LMDZ=$PWD/LMDZ$version/modipsl/modeles/LMDZ
     48ROOT=$(cd -P ../.. ; pwd)
    7149
    7250cmd_$1
Note: See TracChangeset for help on using the changeset viewer.