Changeset 5428 for BOL/LMDZ_Setup


Ignore:
Timestamp:
Dec 19, 2024, 1:55:54 AM (17 hours ago)
Author:
fhourdin
Message:

rad/veget/netcdf/aerosols options from main.sh

Location:
BOL/LMDZ_Setup
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • BOL/LMDZ_Setup/main.sh

    r5415 r5428  
    1313# Expert options are set directly in setup.sh via <define_expert_options>.
    1414#
    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)
    2015#####################################################################
    2116
     
    7671mthend=200501
    7772
     73
     74# Expert options passed to setup.sh
     75rad=rrtm       # Radiation oldrad/rrtm/ecrad
     76netcdf=0       # netcddf 0 (from system) / 1 reinstall / directory containing nectdf*
     77aerosols=clim  # n (no) / clim
     78veget=CMIP6    # Orchidee version : CMIP6 / 7983 (orch2.2 ) / more recent svn
     79
     80
    7881#-----------------------------------------------------------
    7982# Output files, frequencies, levels
     
    114117    # Remember: some other options are only available in lmdz_env.sh and setup.sh.
    115118    # shellcheck disable=SC2086
    116     ./setup.sh -v "$version" -d "$resol" -mthini "$mthini" -mthend "$mthend" -init "$init" -climato "$climato" -f "$freq" -p "$lmd_phys" -name "$name" $cosp $xios $nudging -r "$svn"
     119    ./setup.sh -v "$version" -d "$resol" -mthini "$mthini" -mthend "$mthend" -init "$init" -climato "$climato" -f "$freq" -p "$lmd_phys" -name "$name" $cosp $xios $nudging -r "$svn" -rad $rad -netcdf $netcdf -aerosols $aerosols
    117120  else
    118121    echo "File $deffile inexistent"; exit 1
  • BOL/LMDZ_Setup/script_SIMU

    r5427 r5428  
    230230  #          et le faire automatiquement dans ln_from_pub
    231231  if [[ $aerosols = "spla" ]]; then
    232     for file in donnees_lisa.nc SOILSPEC.data ; do
    233          ln_from_pub 3DInputData/dust_chimere $file
    234     done
    235     for file in cly.dat dust$mo.nc wth.dat ; do
    236          ln_from_pub 3DInputData/dust_inca $file
     232    for file in donnees_lisa.nc SOILSPEC.data                                    \
     233         cly.dat $( for i in $(seq 1 12 ) ; do echo dust$i.nc ; done ) wth.dat   \
     234         carbon_emissions.nc sulphur_emissions_antro.nc sulphur_emissions_nat.nc \
     235         sulphur_emissions_volc.nc ; do
     236             ln_from_pub 3DInputData/SPLA_WA/emissions $file
    237237    done
    238238    ln -s dust$mo.nc dust.nc
    239     for file in carbon_emissions.nc sulphur_emissions_antro.nc sulphur_emissions_nat.nc \
    240          sulphur_emissions_volc.nc  ; do
    241          ln_from_pub 3DInputData/non_dust $file
    242     done
    243239
    244240    # Le calcul d'emissions de sels marins utilise les vents ERA-10m interpoles sur grille_s (lonv,latu) avec le script era2gcm_uv10m.sh
  • BOL/LMDZ_Setup/setup.sh

    r5427 r5428  
    44
    55set -eu
     6set -vx
    67
    78# EXPERT-LEVEL CHOICES, only available in setup.sh, not in main.sh :
     
    101102  LIMIT="LIMIT"
    102103
    103   case $rad in
    104     oldrad) iflag_rrtm=0; NSW=2;;
    105     rrtm)   iflag_rrtm=1; NSW=6;;
    106     ecrad)  iflag_rrtm=2; NSW=6;;
    107   esac
    108104}
    109105
     
    112108    case $1 in
    113109      "-h") cat <<........fin
    114        setup.sh can be launched/driven by main.sh; some options can only be specified in setup.sh (ex: veget, aerosols).
     110       setup.sh can be launched/driven by main.sh
    115111             setup.sh [-v version] [-r svn_release] [-init INIT] [-d 96x95x79] [-f mo] [-nudging]
    116112             -v "version" like 20150828.trunk; see https://lmdz.lmd.jussieu.fr/Distrib/LISMOI.trunk (default <$version>)
    117              -r "svn_release"      either the svn release number or "last" (default <$svn>)
    118              -d IMxJMxLM        to run in resolution IM x JM x LM (default <$resol>)
    119              -install           pour installer et compiler le modele
    120              -f mo/yr           pour tourner en mensuel ou annuel (default <$freq>)
    121              "INIT"             1: creates INIT and LIMIT
    122                                 0: reads from INIT and LIMIT
    123                                 SIMU: reads from preexisting simulation SIMU and LIMIT (default <$init>)
    124              -nudging           to run with nudging. Nudging files must be created independently
    125              -p                 the physics to use (default <$phylmd>)
    126              -name              install folder name (default <$SIM>)
     113             -r "svn_release"        either the svn release number or "last" (default <$svn>)
     114             -d IMxJMxLM             to run in resolution IM x JM x LM (default <$resol>)
     115             -install                pour installer et compiler le modele
     116             -f mo/yr                pour tourner en mensuel ou annuel (default <$freq>)
     117             -rad RAD                Radiation
     118             -netcdf  0/1/DIR        Netcdf installation
     119             -aerosols n/clim/spla   Aerosols : none / climatological / interactive with SPLA
     120             -veget CMIP6            CMIP6 version of rchidee
     121                    7983             orch2.2
     122                    7994             trunk
     123             "INIT"                  1: creates INIT and LIMIT
     124                                     0: reads from INIT and LIMIT
     125                                     SIMU: reads from preexisting simulation SIMU and LIMIT (default <$init>)
     126             -nudging                to run with nudging. Nudging files must be created independently
     127             -p                      the physics to use (default <$phylmd>)
     128             -name                   install folder name (default <$SIM>)
    127129             Other options available (see "options" section in the script)
    128130........fin
     
    134136      "-p") phylmd=$2; shift; shift;;
    135137      "-name") SIM=$2; shift; shift;;
     138      "-rad") rad=$2; shift; shift;;
     139      "-netcdf") netcdf=$2; shift; shift;;
     140      "-aerosols") aerosols=$2; shift; shift;;
     141      "-veget") veget=$2; shift; shift;;
    136142      "-cosp") cosp=y; shift;;
    137143      "-xios") xios=y; shift;;
     
    151157    INIT=$init
    152158  fi
     159
     160  case $rad in
     161    oldrad) iflag_rrtm=0; NSW=2;;
     162    rrtm)   iflag_rrtm=1; NSW=6;;
     163    ecrad)  iflag_rrtm=2; NSW=6;;
     164  esac
    153165
    154166  yearini=$(echo "$mthini" | cut -c-4)
     
    473485      # Files previously in NITROGEN_for_ORtrunk.tar and downloaded only for veget = 7994
    474486  for file in PFTmap_IPCC_2000.nc cartepente2d_15min.nc routing.nc routing_simple.nc lai2D.nc \
    475       soils_param.nc woodharvest_2000.nc PFTmap_15PFT.v1_2000.nc \
    476       soil_bulk_and_ph.nc NITROGEN_for_ORtrunk.tar \
     487      soils_param.nc woodharvest_2000.nc PFTmap_15PFT.v1_2000.nc soil_bulk_and_ph.nc  \
    477488      ndep_nhx.nc ndep_noy.nc nfert_cropland.nc nfert_pasture.nc nmanure_cropland.nc nmanure_pasture.nc bnf.nc \
    478489      ; do
     
    500511
    501512  if [[ $aerosols = "spla" ]]; then
    502     for file in donnees_lisa.nc SOILSPEC.data ; do
    503          wget_pub 3DInputData/dust_chimere $file
    504     done
    505     for file in cly.dat $( for i in $(seq 1 12 ) ; do echo dust$i.nc ; done ) wth.dat ; do
    506          wget_pub 3DInputData/dust_inca $file
    507     done
    508     for file in carbon_emissions.nc sulphur_emissions_antro.nc sulphur_emissions_nat.nc \
     513    #for file in donnees_lisa.nc SOILSPEC.data                                    \ # For Chimere dust emissions
     514    #     cly.dat $( for i in $(seq 1 12 ) ; do echo dust$i.nc ; done ) wth.dat   \ # For Inca dust emissions
     515    #     carbon_emissions.nc sulphur_emissions_antro.nc sulphur_emissions_nat.nc \ # For non dust emissions
     516    for file in donnees_lisa.nc SOILSPEC.data                                    \
     517         cly.dat $( for i in $(seq 1 12 ) ; do echo dust$i.nc ; done ) wth.dat   \
     518         carbon_emissions.nc sulphur_emissions_antro.nc sulphur_emissions_nat.nc \
    509519         sulphur_emissions_volc.nc  ; do
    510          wget_pub 3DInputData/non_dust $file
     520             wget_pub 3DInputData/emissions $file
    511521    done
    512522
Note: See TracChangeset for help on using the changeset viewer.