Changeset 4471 for CONFIG/UNIFORM
- Timestamp:
- 06/21/19 11:02:31 (5 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
CONFIG/UNIFORM/v6/IPSLCM6.2/compile_ipslcm6.sh
r4470 r4471 13 13 14 14 #### Set default options 15 # Atmospheric resolution, for LMDZ/ORCHIDEE in regular mode 16 resol_atm=144x142x79 17 # Oceanic resolution, for NEMO (ORCA2/ORCA1/ORCA025) 18 resol_oce=ORCA1 19 # Version of ice model lim2/lim3 20 version_lim=lim3 21 # Version ESM CO2: CO2 interactif ocean/atmosphere (y/n) 22 esmco2=n 23 15 24 # Optimization mode 16 25 # optmode=prod/dev/debug 17 26 optmode=prod 18 # Resolution of LMDZ in regular mode19 resol_atm=144x142x7920 21 27 # fcm_arch 22 28 fcm_arch=default … … 29 35 30 36 # Output text file for compilation of each component 31 outfile=$submitdir/out_compile_ lmdzor37 outfile=$submitdir/out_compile_ipslcm6 32 38 rm -f $outfile; echo > $outfile 33 echo; echo "Text output from compilation will be stored in file out_compile_ lmdzor"; echo39 echo; echo "Text output from compilation will be stored in file out_compile_ipslcm6"; echo 34 40 35 41 #### Read arguments … … 40 46 41 47 ######################################################################## 42 # Usage of the script compile_ lmdzor.sh48 # Usage of the script compile_ipslcm6.sh 43 49 # 44 50 ######################################################################## 45 51 46 ./compile_config [Options] 47 48 Options: -full, -resol_atm, -debug, -dev, -prod(default) 49 50 Example 1: Default compilation of LMDZ-ORCHIDEE with XIOS and IOIPSL 51 ./compile_lmdzor.sh 52 53 Example 2: Compile in debug mode 54 ./compile_lmdzor.sh -debug 55 56 Example 3: Default compilation with full recompilation of all components 57 ./compile_lmdzor.sh -full 58 59 Example 4: Compilation of LMDZ in regular lat-lon for other dimensions (default: 144x142x79) 60 The dimension can be changed to any other 3d dimension. 61 ./compile_lmdzor.sh -resol_atm 96x95x79 52 ./compile_ipslcm6.sh [Options] 53 54 55 Options: [LR / VLR / MR025] Model resolution, choose only one. Default: LR. 56 [ESMCO2] Compile IPSLCM6 for CO2 interactif ocean/atmosphere. 57 [-full] Full recompilation of all components. This option can be added to all other options. 58 [-debug / -dev / -prod] Level of optimization. One of these can be added to all other compile options. Default: -prod. 59 60 61 Example 1: Default compilation of IPSLCM6 for resoltion LR 62 (Resolution atmos: 144x142x79, ocean: ORCA1) 63 ./compile_ipslcm6.sh 64 65 Example 2: Compilation of IPSLCM6 for resolution MR025 66 (atmos: 256x256x79, ocean: ORCA025, NOPISCES) 67 ./compile_ipslcm6.sh MR025 68 69 Example 3: Compilation of IPSLCM6 for ESM CO2 70 ./compile_ipslcm6.sh ESMCO2 71 72 Example 4: Default resoltuion (LR) compiled in debug mode 73 ./compile_ipslcm6.sh -debug 74 75 Example 5: Default compilation with full recompilation of all components. No clean is needed. 76 ./compile_ipslcm6.sh -full 77 78 Example 6: Full recompilation of resolution MR05 in debug mode 79 ./compile_ipslcm6.sh MR025 -debug -full 62 80 63 81 fin 64 82 exit;; 83 84 "VLR") 85 resol_atm=96x95x39; resol_oce=ORCA1 ; version_lim=lim2; shift ;; 86 87 "LR") 88 resol_atm=144x142x79; resol_oce=ORCA1 ; version_lim=lim3; shift ;; 89 90 "MR025") 91 resol_atm=256x256x79; resol_oce=ORCA025 ; version_lim=lim3; shift ;; 92 93 "ESMCO2") 94 esmco2=y; shift ;; 65 95 66 96 "-parallel") … … 70 100 fcm_arch="$2" ; shift ; shift ;; 71 101 72 "-xios")73 xios="$2" ; shift ; shift ;;74 75 102 "-debug") 76 103 optmode=debug ; shift ;; … … 82 109 optmode=prod ; shift ;; 83 110 84 "-resol_atm")85 resol_atm=$2 ; shift ; shift ;;86 87 111 "-full") 88 112 full_flag="-full"; shift ;; … … 97 121 done 98 122 99 echo "Following arguments are set in current compiling:" >> $outfile 100 echo " optmode = $optmode, parallel = $parallel, fcm_arch = $fcm_arch, full_flag=$full_flag resol_atm=${resol_atm}" >> $outfile 123 echo "Following options are set in current compiling:" >> $outfile 124 echo " resol_atm=${resol_atm}, resol_oce=${resol_oce}, $version_lim=${version_lim}" >> $outfile 125 echo " esmco2=${esmco2}" >> $outfile 126 echo " optmode = $optmode, parallel = $parallel, fcm_arch = $fcm_arch, full_flag=$full_flag" >> $outfile 101 127 echo >> $outfile 102 128
Note: See TracChangeset
for help on using the changeset viewer.