Changeset 5428 for BOL/LMDZ_Setup
- Timestamp:
- Dec 19, 2024, 1:55:54 AM (17 hours ago)
- Location:
- BOL/LMDZ_Setup
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
BOL/LMDZ_Setup/main.sh
r5415 r5428 13 13 # Expert options are set directly in setup.sh via <define_expert_options>. 14 14 # 15 # Some expert options in setup.sh :16 # * Orchidee version, through the "veget" option17 # * Aerosol forcing, through the "aerosols" option18 # * Radiation code, through the "rad" option19 # * Compilation options (debug, netcdf)20 15 ##################################################################### 21 16 … … 76 71 mthend=200501 77 72 73 74 # Expert options passed to setup.sh 75 rad=rrtm # Radiation oldrad/rrtm/ecrad 76 netcdf=0 # netcddf 0 (from system) / 1 reinstall / directory containing nectdf* 77 aerosols=clim # n (no) / clim 78 veget=CMIP6 # Orchidee version : CMIP6 / 7983 (orch2.2 ) / more recent svn 79 80 78 81 #----------------------------------------------------------- 79 82 # Output files, frequencies, levels … … 114 117 # Remember: some other options are only available in lmdz_env.sh and setup.sh. 115 118 # 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 117 120 else 118 121 echo "File $deffile inexistent"; exit 1 -
BOL/LMDZ_Setup/script_SIMU
r5427 r5428 230 230 # et le faire automatiquement dans ln_from_pub 231 231 if [[ $aerosols = "spla" ]]; then 232 for file in donnees_lisa.nc SOILSPEC.data ; do233 ln_from_pub 3DInputData/dust_chimere $file234 done235 for file in cly.dat dust$mo.nc wth.dat; do236 ln_from_pub 3DInputData/dust_inca$file232 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 237 237 done 238 238 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 ; do241 ln_from_pub 3DInputData/non_dust $file242 done243 239 244 240 # 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 4 4 5 5 set -eu 6 set -vx 6 7 7 8 # EXPERT-LEVEL CHOICES, only available in setup.sh, not in main.sh : … … 101 102 LIMIT="LIMIT" 102 103 103 case $rad in104 oldrad) iflag_rrtm=0; NSW=2;;105 rrtm) iflag_rrtm=1; NSW=6;;106 ecrad) iflag_rrtm=2; NSW=6;;107 esac108 104 } 109 105 … … 112 108 case $1 in 113 109 "-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 115 111 setup.sh [-v version] [-r svn_release] [-init INIT] [-d 96x95x79] [-f mo] [-nudging] 116 112 -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>) 127 129 Other options available (see "options" section in the script) 128 130 ........fin … … 134 136 "-p") phylmd=$2; shift; shift;; 135 137 "-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;; 136 142 "-cosp") cosp=y; shift;; 137 143 "-xios") xios=y; shift;; … … 151 157 INIT=$init 152 158 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 153 165 154 166 yearini=$(echo "$mthini" | cut -c-4) … … 473 485 # Files previously in NITROGEN_for_ORtrunk.tar and downloaded only for veget = 7994 474 486 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 \ 477 488 ndep_nhx.nc ndep_noy.nc nfert_cropland.nc nfert_pasture.nc nmanure_cropland.nc nmanure_pasture.nc bnf.nc \ 478 489 ; do … … 500 511 501 512 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 \ 509 519 sulphur_emissions_volc.nc ; do 510 wget_pub 3DInputData/non_dust$file520 wget_pub 3DInputData/emissions $file 511 521 done 512 522
Note: See TracChangeset
for help on using the changeset viewer.