Changeset 4991 for BOL/LMDZ_Setup_amaury


Ignore:
Timestamp:
Jun 20, 2024, 7:22:04 PM (3 months ago)
Author:
abarral
Message:

Improve docs
Fix bug on sequential sim when running locally
Fix crash when running init without slurm (ce0l w/o OMP_NUM_THREADS=1)
Fix crash for climato=0 due to missing limit.nc

Location:
BOL/LMDZ_Setup_amaury
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • BOL/LMDZ_Setup_amaury/lmdz_env.sh

    r4980 r4991  
     1#!/bin/bash
     2########################################################
     3# This file loads the required modules and sets the paths for simulations
     4# To modify the paths:
     5#    1) In the <set_env> function, find the section corresponding to your machine
     6#    2) Modify the variables, which are documented in the *) section of <set_env>
     7# See the end of <set_env> for the explanation of each
     8########################################################
    19
    2 ##############################################################
    3 # Gestion des modules
    4 ##############################################################
     10function get_hostname {
     11  if grep -q "Adastra" /etc/motd; then
     12    hostname="adastra"
     13  else
     14    hostname=$(hostname)
     15  fi
     16}
    517
    6 if grep -q "Adastra" /etc/motd; then
    7   hostname="adastra"
    8 else
    9   hostname=$(hostname)
    10 fi
     18function set_env {  # Platform-specific
     19  case ${hostname:0:5} in
     20    jean-)
     21      ARCH="X64_JEANZAY"
     22      module purge
     23      compilo=19.0.4 # available 2013.0, 2017.2
     24      module load intel-compilers/$compilo
     25      #module load intel-mpi/$compilo
     26      module load intel-mkl/$compilo
     27      module load hdf5/1.10.5-mpi
     28      module load netcdf/4.7.2-mpi
     29      module load netcdf-fortran/4.5.2-mpi
     30      module load subversion/1.9.7
     31      #Pour module gcc, voir : https://trac.lmd.jussieu.fr/LMDZ/wiki/PortageJeanZay
     32      #module load gcc/6.5.0
     33      module load nco
     34      module load cdo
     35      # Imputation de la consommation sur le groupe (projet) actif par defaut,
     36      #   idrproj indique le groupe (projet) actif par defaut
     37      #   idrproj -d newproj   redefinit "newproj" en tant que  projet actif,
     38      #        alors $STORE, $WORK etc vont designer les espaces de "newproj")
     39      account=$(idrproj | grep active | awk '{ print $1}')
     40      SUBMITCMD="sbatch -A $account@cpu "
     41      RUNCMD="srun --label -n"
     42      # Espaces suivants definis par defaut en fonction du groupe actif,
     43      #  par exemple : SCRATCHD=$SCRATCH is /gpfsstore/rech/$groupe/$login
     44                  #    * On peut aussi ne pas installer les scripts a la racine de STORE,
     45                  #        mais dans STORED=$STORE/your_folder
     46      SIMRUNBASEDIR="$SCRATCH/LMDZ_Setup"
     47      LMDZD=$WORK
     48      NB_MPI_MAX=2000
     49      NB_OMP_MAX=20
     50      #LMDZ_Init sur le $STORE du $groupe
     51      LMDZ_INIT=$STORE/LMDZ_Init
     52      ;;
     53    spiri)
     54      module purge
     55      module load subversion/1.13.0
     56      module load gcc/11.2.0
     57      module load openmpi/4.0.7
     58      module load cdo/2.3.0
     59
     60      root_dir=~/"LMDZ_SETUP_ROOT/LMDZ_Setup";
     61      ARCH="X64_MESOIPSL-GNU"
     62      SIMRUNBASEDIR="$SCRATCH/"
     63      LMDZD="$root_dir/LMDZD"
     64      LMDZ_INIT="$root_dir/LMDZ_Init"
     65      NB_MPI_MAX=20
     66      NB_OMP_MAX=1
     67      RUNCMD="mpirun -n"  # on spirit, we can't run MPI using srun from within sbatch
     68      SUBMITCMD="sbatch"
     69      ;;
     70    adast)
     71      module purge
     72  #    module load PrgEnv-gnu
     73  #    module load cray-hdf5-parallel
     74  #    module load netcdf-hdf5parallel/gnu/10.3
     75
     76      account=$(/usr/sbin/my_project.py -l 2>&1 | head -1 | cut -d " " -f 3- | cut -c 5-)
     77      root_dir="$WORKDIR/LMDZ_Setup";
     78      ARCH="X64_ADASTRA-GNU"
     79      SIMRUNBASEDIR="$SCRATCHDIR/"
     80      LMDZD="$root_dir/LMDZD"
     81      LMDZ_INIT="$root_dir/LMDZ_Init"
     82      NB_MPI_MAX=20  # TODO 2000 in JZ
     83      NB_OMP_MAX=2  # TODO 20 in JZ
     84      RUNCMD="srun --label --account=$account -n"
     85      SUBMITCMD="sbatch --account=$account"
     86      ;;
     87    *) echo "WARNING: RUNNING THIS SCRIPT ON A LOCAL COMPUTER IS DISCOURAGED (lackluster cpus and memory)"
     88      root_dir="/home/abarral/PycharmProjects/installLMDZ/LMDZ_Setup"; # Where you have extracted LMDZ_Setup. Can't use $(pwd) since this script gets copied and ran from several locations
     89      ARCH="local-gfortran-parallel"  # The arch file to use
     90      SIMRUNBASEDIR="/tmp/SCRATCH/"  # Where the simulations will be executed ($SIMRUNBASEDIR/LMDZ_Setup/...)
     91      LMDZD="$root_dir/LMDZD"  # Where the sources will be downloaded and compiled
     92      LMDZ_INIT="$root_dir/LMDZ_Init"  # Where to store shared files used for initialisation
     93      NB_MPI_MAX=2  # Max number of MPI cores (only for running simulations)
     94      NB_OMP_MAX=1  # Max number of OMP threads (only for running simulations)
     95      RUNCMD="mpirun -np" # command to run a job, as $runcmd <nprocs> <script>
     96      SUBMITCMD="."  # command to sumbit a job, as $submitcmd <script>
     97      ;;
     98  esac
     99}
     100
     101get_hostname
    11102echo "Setting up lmdz_env on $hostname"
    12 
    13 # Platform-specific
    14 case ${hostname:0:5} in
    15   jean-)
    16     ARCH="X64_JEANZAY"
    17     module purge
    18     compilo=19.0.4 # available 2013.0, 2017.2
    19     module load intel-compilers/$compilo
    20     #module load intel-mpi/$compilo
    21     module load intel-mkl/$compilo
    22     module load hdf5/1.10.5-mpi
    23     module load netcdf/4.7.2-mpi
    24     module load netcdf-fortran/4.5.2-mpi
    25     module load subversion/1.9.7
    26     #Pour module gcc, voir : https://trac.lmd.jussieu.fr/LMDZ/wiki/PortageJeanZay
    27     #module load gcc/6.5.0
    28     module load nco
    29     module load cdo
    30     # Imputation de la consommation sur le groupe (projet) actif par defaut,
    31     #   idrproj indique le groupe (projet) actif par defaut
    32     #   idrproj -d newproj   redefinit "newproj" en tant que  projet actif,
    33     #        alors $STORE, $WORK etc vont designer les espaces de "newproj")
    34     account=$(idrproj | grep active | awk '{ print $1}')
    35     SUBMITCMD="sbatch -A $account@cpu "
    36     RUNCMD="srun --label -n"
    37     # Espaces suivants definis par defaut en fonction du groupe actif,
    38     #  par exemple : SCRATCHD=$SCRATCH is /gpfsstore/rech/$groupe/$login
    39                 #    * On peut aussi ne pas installer les scripts a la racine de STORE,
    40                 #        mais dans STORED=$STORE/your_folder
    41     SIMRUNBASEDIR="$SCRATCH/LMDZ_Setup"
    42     LMDZD=$WORK
    43     NB_MPI_MAX=2000
    44     NB_OMP_MAX=20
    45     #LMDZ_Init sur le $STORE du $groupe
    46     LMDZ_INIT=$STORE/LMDZ_Init
    47     ;;
    48   spiri)
    49     module purge
    50     module load subversion/1.13.0
    51     module load gcc/11.2.0
    52     module load openmpi/4.0.7
    53     module load cdo/2.3.0
    54 
    55     root_dir=~/"LMDZ_SETUP_ROOT/LMDZ_Setup";
    56     ARCH="X64_MESOIPSL-GNU"
    57     SIMRUNBASEDIR="$SCRATCH/"
    58     LMDZD="$root_dir/LMDZD"
    59     LMDZ_INIT="$root_dir/LMDZ_Init"
    60     NB_MPI_MAX=20
    61     NB_OMP_MAX=1
    62     RUNCMD="mpirun -n"  # on spirit, we can't run MPI using srun from within sbatch
    63     SUBMITCMD="sbatch"
    64     ;;
    65   adast)
    66     module purge
    67 #    module load PrgEnv-gnu
    68 #    module load cray-hdf5-parallel
    69 #    module load netcdf-hdf5parallel/gnu/10.3
    70 
    71     account=$(/usr/sbin/my_project.py -l 2>&1 | head -1 | cut -d " " -f 3- | cut -c 5-)
    72     root_dir="$WORKDIR/LMDZ_Setup";
    73     ARCH="X64_ADASTRA-GNU"
    74     SIMRUNBASEDIR="$SCRATCHDIR/"
    75     LMDZD="$root_dir/LMDZD"
    76     LMDZ_INIT="$root_dir/LMDZ_Init"
    77     NB_MPI_MAX=20  # TODO 2000 in JZ
    78     NB_OMP_MAX=2  # TODO 20 in JZ
    79     RUNCMD="srun --label --account=$account -n"
    80     SUBMITCMD="sbatch --account=$account"
    81     ;;
    82   *) echo "WARNING: RUNNING THIS SCRIPT ON A LOCAL COMPUTER IS DISCOURAGED (lackluster cpus and memory)"
    83     root_dir="/home/abarral/PycharmProjects/installLMDZ/LMDZ_Setup"; # Where LMDZ_Setup is extracted. Can't use $(pwd) since this script gets copied and ran from several locations
    84     ARCH="local-gfortran-parallel"
    85     SIMRUNBASEDIR="/tmp/SCRATCH/"  # Where the simulations will be executed ($SIMRUNBASEDIR/LMDZ_Setup/...)
    86     LMDZD="$root_dir/LMDZD"  # Where the sources will be downloaded and compiled
    87     LMDZ_INIT="$root_dir/LMDZ_Init"  # Where to store shared files used for initialisation
    88     NB_MPI_MAX=2  # Max number of MPI cores
    89     NB_OMP_MAX=1  # Max number of OMP threads
    90     RUNCMD="mpirun -np" # command to run a job, as $runcmd <nprocs> <script>
    91     SUBMITCMD="."  # command to sumbit a job, as $submitcmd <script>
    92     ;;
    93 esac
     103set_env
    94104
    95105if [[ ! (-d $root_dir && -f $root_dir/lmdz_env.sh) ]]; then
  • BOL/LMDZ_Setup_amaury/main.sh

    r4980 r4991  
    44
    55#####################################################################
    6 # This script manages the call to setup.sh
    7 #
    86# Authors :
    97# F. Hourdin, frederic.hourdin@lmd.ipsl.fr
    108# Modified A. Sima, adriana.sima@lmd.ipsl.fr
     9# Rewritten 2024 A. Barral
    1110#
    12 # Some options can only be changed directly in lmdz_env.sh or setup.sh
    13 # --> In setup.sh :
    14 # * Orchidee version, to be defined through "veget" option
    15 #   default : OR-CMIP6
    16 # * Aerosol forcing, to be defined through "aerosols" option :
    17 #   n (no, default) / clim (an2000)/ spla (interactive dust and sea salt)
    18 #   !!! STRONG recommendation : experiments with DIFFERENT Orchidee or aerosol options
    19 #   !!!   should be performed in DIFFERENT TEST_PROD folders
    20 #   !!!  (especially as they may need different initial files)
    21 #  * Use or not of the RRTM radiation code : rrtm=true/false
    22 #  * Compiling options : debug, use or not of the fcm makefile
     11# This is the main user script of LMDZ_Setup. It defines basic options for the simulations, and runs setup.sh.
     12# Settings such as model and simulation paths are set in lmdz_env.sh. You must modify it to set the current LMDZ_Setup path as <root_dir>.
     13# Expert options are set directly in setup.sh via <define_expert_options>.
    2314#
    24 # --> In lmdz_env.sh :
    25 # * Model & configuration setup
    26 #    If you install the present tutorial_prod package in $STORE/your_folder instead of $STORE
    27 #       modify STORED variable accordingly
    28 #    The model will be installed in $LMDZD directory defined in lmdz_env.sh
    29 #      Default : LMDZD=$WORK; can be changed in LMDZD=$WORK/Your_directory
    30 #    To use a model already installed (and compiled), by you or someone else (check the acces!):
    31 #       set LMDZD=path_to_model_to_use
    32 #       You'll also need to (re)define "LMDZname" accordingly, in setup.sh
     15# Some expert options in setup.sh :
     16# * Orchidee version, through the "veget" option
     17# * Aerosol forcing, through the "aerosols" option
     18# * Radiation code, through the "rad" option
     19# * Compilation options (debug, netcdf)
    3320#####################################################################
    3421
     
    3926# Version of the tar file on https://lmdz.lmd.jussieu.fr/pub/src
    4027# Last "testing" version, thoroughly checked by the LMDZ team : contains LMDZ rev 4729 (2023-10-22)
    41 # TODO move to expert-level settings ?
    4228version="20240308.trunk" #!! DON'T CHANGE IT WITHOUT CHECKING WITH LMDZ TEAM !!
    4329svn=""                   #!! DON'T CHANGE IT WITHOUT CHECKING WITH LMDZ TEAM !!
    44         # CONTACT LMDZ Team :
    45         #       email: poihl@listes.lmd.ipsl.fr
    46         #       Mattermost: https://mattermost.lmd.ipsl.fr/lmdz/channels/installation-et-tutoriels
     30# CONTACT LMDZ Team :
     31#       email: poihl@listes.lmd.ipsl.fr
     32#       Mattermost: https://mattermost.lmd.ipsl.fr/lmdz/channels/installation-et-tutoriels
    4733
    4834# Grid number of points IMxJMxLM
     
    5036resol="32x32x39"  # TODO TEMP
    5137
    52 # Using XIOS for IOs: "-xios" for enabled, else ""
     38## Using XIOS for IOs: "-xios" (enabled) / "" (disabled)
    5339xios=""
    54 # TODO Amaury: je pensais que l'idée de main.sh c'était de mettre des paramètres qu'on peut changer en recompilant uniquement lmdz. Or ce n'est pas le cas d'XIOS...
    5540
    56 # Using or not the Cosp simulator: "-cosp" for enabled, else ""
     41# Using or not the Cosp simulator: "-cosp" (enabled) / "" (disabled)
    5742cosp=""
    5843
    59 # Choice of physics (default : "lmd" for "phylmd" )
    60 #   Examples : lmd_phys="new" to compile with phynew instead of phylmd,
    61 #              lmd_phys="lmdiso" to run with Isotopes
     44# Choice of physics: "lmd" (phylmd) / "new" (phynew) / "lmdiso" (isotopes)
    6245lmd_phys="lmd"
    6346
     
    7861
    7962# Nudging: Can only be activated with climato=0 and freq=mo
    80 # ="-nudging" for enabled, else ""
     63# "-nudging" (enabled) / "" (disabled)
    8164nudging=""
    8265#If using nudging, then check DEF/guide.def :
  • BOL/LMDZ_Setup_amaury/script_SIMU

    r4980 r4991  
    7878# Repertoires de travail
    7979WWORKD=$SCRATCHD/$SIMU_dir$$
     80if [[ -d $WWORKD ]]; then  # useful when running on local computer, where jobs aren't submitted
     81  rm -rf "$WWORKD"
     82fi
    8083mkdir -p $WWORKD
    8184cd $WWORKD
  • BOL/LMDZ_Setup_amaury/setup.sh

    r4986 r4991  
    88####################################################################
    99function define_expert_options {
    10   #NOTE : $optim  is part of $LMDZname (see definition of LMDZname below),
    11   #   so that running with "-debug" needs to (re)install the model (install=-install in main.sh)
    12   #   If you have already installed the model, and only want to recompile the gcm in debug mode,
    13   #   add "-debug" to the compilation options in the compile.sh script created in the present folder, and run it (./compile.sh gcm)
    14   #   ALTERNATIVELY : you can remove $optim in the definition of "LMDZname" below
    15   #optim=""
    16   optim="-debug"  # TODO temp
    17 
    18   #NOTE : "testmode=y" is for running in test mode :
    19   # the simulation job "tmp_$SIM" (created on $SCRATCHDIR) is automatically changed for a short run,
    20   # and submitted to the Jean-Zay "test" queue :
    21   #  a/ time=00:10:00  (run time limit = 10 min; for test queue, it must be 30 min maximum)
    22   #  b/ nday=1 (this line, forcing nday to 1 day, is "hidden" in script_SIMU, by default it is commented out)
    23   #  c/ #SBATCH --qos=qos_cpu-dev (this line is in script_SIMU, by default it is commented out)
    24   #If you want to change "time", or "nday", but still run in "test" mode, modify the "if [ $debug = 1 ]...; fi" further below.
    25   testmode="y"  # TODO revert
    26 
    27   # Radiative code : "oldrad" or "rrtm" or "ecrad"
     10  # optim: either "" or "-debug" to compile in debug mode (slower but better diagnosis of segfaults)
     11  optim=""
     12
     13  # "n" or "y". If testmode="y", then simulations run for a single day per period.
     14  # NOTE: you must set mthend accordingly !
     15  testmode="n"
     16
     17  # Radiative code: "oldrad" / "rrtm" / "ecrad"
    2818  rad="rrtm"
    2919
    30   # AEROSOLS : n (=no) / clim (=average 1995-2014) / spla (interactive dust and sea salt)
     20  #   !!! STRONG recommendation : experiments with DIFFERENT Orchidee or aerosol options should be performed in DIFFERENT LMDZ_Setup folders
     21  #   !!! (especially as they may need different initial files)
     22
     23  # AEROSOLS : "n" (=no) / "clim" (=average 1995-2014) / "spla" (interactive dust and sea salt)
    3124  # (WARNING : if you first run the scripts with aerosols=n, then you want to change to =clim ,
    3225  #   you'll need to remove the INIT and LIMIT folders that have been created, then run main.sh with init=1
    3326  #   in order to re-run the initialisation job, which downloads the aerosol files and interpolates them)
    3427  aerosols="clim"
    35   aerosols="n"  # TODO revert when we fix/investigate the aerosols issue
     28  aerosols="n"  # TODO TEMP
    3629
    3730  # SURFACE/VEGETATION SCHEME
    38   # It is controlled by the single variable "veget" which can have the following values
    39   # - "none": bucket scheme
    40   # - "CMIP6" or "orch2.0": orchidee version used in CMIP exercise, rev 5661
    41   # - "orch2.2": orchidee version used in IPSLCM7 configuration
    42   # - number: orchidee version number : only rev 7983 on branch _2_2, and 7994 on trunk, are available
     31  # - "none" (bucket scheme) / "CMIP6" or "orch2.0" (orchidee version used in CMIP exercise) / "orch2.2" (orchidee version used in IPSLCM7 configuration) / number (orchidee version number - only rev 7983 on branch _2_2, and 7994 on trunk, are available)
     32  # TODO check w/ Adriana why only 7983 & 7994, see if still relevant - is it a compilation issue ? Or an INIT issue ?
    4333  veget="CMIP6"
    44 
    45   #AS : If you have installed the model with a given "veget" option, and you want to change it :
    46   #   --> RECOMMENDED : re-install the model from scratch in a new TEST_PROD folder
    47   #   TODO Amaury: check w/ Adriana what the use case is for lmdz_setup here
    48   #   --> EXPERT : If you want to keep your previous installation, and not go through the install_lmdz.sh routine,
    49   #    you will need to (a) install the proper version of ORCHIDEE in the modipsl/modeles directory, and
    50   #                     (b) set the "veget" options (opt_veget, orchidee_rev, suforch) to their proper values
    51   #                        in the file $LMDZD/modipsl/modeles/surface_env
    52   # (NB : no need to initialise these vars here:
    53   #     surface_env is either (re)created when (re)installing the model (run with install=-install),
    54   #     or it already exists (install="").
    55 
    56   # New snow scheme INLANDSIS (y/n)
    57   # (this flag activates INLANDSIS compilation;
    58   # not yet done : treatment of specific restart and def file)
     34#  veget="6592"  # TODO correct bug in install_lmdz where we don't know which fcm arg to fwd if we only give the rev... see w/ Laurent (choice in ols install_lmdz: only support >2.0)
     35
     36  # New snow scheme INLANDSIS! "y" / "n"
     37  # This flag activates INLANDSIS compilation; not yet done : treatment of specific restart and def file
    5938  inlandsis="n"
     39
     40  # netcdf: 0 (use existing library) / 1 (recompile netcdf, slow)
     41  netcdf=0
    6042
    6143  # --->>> ALSO PAY ATTENTION TO OUTPUT files, frequency, level -------------
     
    6648  #          For aerosols=n, the corresponding flags will automatically be set to "n".
    6749  #   With XIOS : adjust DEF/XMLfiles*/file*xml
    68 
    69   netcdf=0
    7050}
    7151
    7252# /!\ DO NOT EDIT BELOW UNLESS YOU KNOW WHAT YOU ARE DOING /!\
    7353
    74 function enable_groupe {  # In job scripts, sed platform-specific headers
     54function enable_platform {  # In job scripts, sed platform-specific headers
    7555  local file="$1"
    7656  local platform
     
    205185  fi
    206186
    207   if [[ $climato = 0 && $freq = yr ]]; then
     187  if [[ $climato = 0 && $freq = "yr" ]]; then
    208188     echo "STOP: Running simulations with interannual SSTs is possible only month by month and a true calendar."
    209189     echo "Change <climato> to <1> or <freq> to <mo> or modify setup.sh (experts)"; exit 1
     
    397377    cp reb.sh "$local/$SIM/reb.sh"; chmod +x "$local/$SIM/reb.sh"
    398378    sed -i'' -e "s:^rebuild=.*.$:rebuild=$LMDZD/$LMDZname/modipsl/bin/rebuild:" "$local/$SIM/reb.sh"
    399     enable_groupe "$local/$SIM/reb.sh"
     379    enable_platform "$local/$SIM/reb.sh"
    400380
    401381    # Copy .def
     
    454434  "$local/script_SIMU" >| "$SIMRUNDIR/tmp_$SIM"
    455435
    456   enable_groupe "$SIMRUNDIR/tmp_$SIM"
     436  enable_platform "$SIMRUNDIR/tmp_$SIM"
    457437
    458438  if [[ $testmode = "y" ]]; then
     
    539519  done
    540520  cd - > /dev/null
     521
     522  if [[ $rad = "ecrad" && ! -d ecrad_data ]]; then
     523    cd "$local"; wget https://lmdz.lmd.jussieu.fr/pub/3DInputData/ecrad/ecrad_data.tar; tar xvf ecrad_data.tar; cd - > /dev/null
     524  fi
    541525}
    542526
     
    648632  sed -e 's/anneeref=.*.$/anneeref='\$yr'/' DEF/run.def >| run.def
    649633  echo Starting initialisation
    650   $RUNCMD 1 $ce0l
     634  OMP_NUM_THREADS=1 $RUNCMD 1 $ce0l  # ce0l requires MPI=OMP=1
    651635  if [ $climato = 0 ]; then mv limit.nc limit.\$yr.nc; fi
    652636done
     
    672656
    673657# Copy initial and forcing files in $local/$INIT and $local/$LIMIT; also in $local/INPUT_SPLA if $aerosols=spla
    674 for f in sta* limit.nc gri*nc; do cp \$f $local/$INIT/\$f; done
     658for f in sta* gri*nc; do cp \$f $local/$INIT/\$f; done
     659if [[ $climato = 1 ]]; then cp limit.nc $local/$INIT/limit.nc; fi
    675660mkdir -p $local/$LIMIT
    676661for f in limit*.nc ; do cp \$f $local/$LIMIT/\$f; done
     
    691676  # ANCIEN MULTI STEP   esac
    692677...eod
    693     enable_groupe tmp
     678    enable_platform tmp
    694679    echo "###############################################################################"
    695680    echo "Submitting initialisation job <$SUBMITCMD tmp> from $(pwd)"
     
    705690     $SUBMITCMD "tmp_$SIM"
    706691     echo '###############################################################################'
     692  fi
     693}
     694
     695function message_post_submit {
     696  if [[ $ok_guide = "y" && $init = 1 ]]; then
     697    echo "Once initialisation is finished, you have to create nudging files"
     698    echo "Edit era2gcm.sh and set the desired parameters in section <User choices>"
     699    echo "Make sure you have acces to the chosen ERA files, and the required modules are loaded, then run : ./era2gcm.sh"
     700    if [[ $aerosols = "spla" ]]; then
     701      echo "Your aerosol choice is <spla>, so you need ERA 10m-winds interpolated on LMDZ grid. Use script era2gcm_uv10m.sh"
     702    fi
     703  else
     704    echo "Si tout se passe bien, vous avez initialisé et lancé automatiquement la simulation."
     705    echo "Le job qui a été lancé se trouve sur $SIMRUNTOPDIR/$MAINDIR/tmp_$SIM"
    707706  fi
    708707}
     
    724723fetch_simu_init_files
    725724run_sim_or_init
     725message_post_submit
    726726
    727727exit 1
     
    730730# COMPILATION OPTIONS depending on the user choices and LMDZ revision number $mysvn
    731731#-------------------------------------------------------
    732 if [[ $rad = "ecrad" && ! -d ecrad_data ]]; then
    733     cd "$local"; wget https://lmdz.lmd.jussieu.fr/pub/3DInputData/ecrad/ecrad_data.tar; tar xvf ecrad_data.tar; cd - > /dev/null
    734 fi
    735732
    736733if [[ $rad = "ecrad" && $aerosols != "n" && $mysvn -lt 4489 ]] ; then echo "Les aerosols tropospheriques ne sont pas pris en charge par ecrad avant LMDZ rev 4489, ici rev est $mysvn"; exit 1; fi
     
    760757
    761758
    762 if [ $ok_guide = y -a $init = 1 ]; then
    763    echo Once initialisation is finished, you have to create nudging files
    764    echo Edit era2gcm.sh and set the desired parameters in section "User choices"
    765    echo Make sure you have acces to the chosen ERA files, and the required modules are load
    766    echo Then run : ./era2gcm.sh
    767    if [ "$aerosols" = "spla" ]; then
    768      echo Your aerosol choice is "spla", so you need ERA 10m-winds interpolated on LMDZ grid
    769      echo Use script era2gcm_uv10m.sh
    770    fi
    771 else
    772    echo Si tout se passe bien, vous avez initialise et lance automatiquement
    773    echo la simulation.
    774    echo Si vous voulez modifier les caracteristiques du job, comme le temps
    775    echo max ou le nombre de proc, il se trouve sur
    776    echo $SIMRUNTOPDIR/$MAINDIR/tmp_$SIM
    777 fi
     759
    778760
    779761###############################################################################
Note: See TracChangeset for help on using the changeset viewer.