Changeset 6677 for CONFIG/UNIFORM
- Timestamp:
- 11/20/23 11:47:44 (7 months ago)
- Location:
- CONFIG/UNIFORM/v7/IPSLCM7
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
CONFIG/UNIFORM/v7/IPSLCM7/compile_ipslcm7.sh
r6655 r6677 14 14 #### Set default options 15 15 # Activate compilation of LMDZ for regular latlon grid without DYNAMICO 16 regular_latlon= no17 # Atmospheric resolution for regular grid for LMDZ/ORCHIDEE, if regular_latlon=y es16 regular_latlon=y 17 # Atmospheric resolution for regular grid for LMDZ/ORCHIDEE, if regular_latlon=y 18 18 resol_atm=144x142x79 19 19 # Coupled with ocean biogeochemistry (y/n) … … 65 65 while (($# > 0)) ; do 66 66 case $1 in 67 "-h" ) cat <<end_help67 "-h"|"-help") cat <<end_help 68 68 ######################################################################## 69 69 # Usage of the script compile_ipslcm7.sh … … 73 73 ./compile_ipslcm7.sh [Options] 74 74 75 76 Options: [-full] Full recompilation of all components. This option can be added to all other options. 77 [-cleannemo] Full recompilation of NEMO component only. 78 [-regular_latlon] Activate compilation of LMDZ for regular latlon grid with default resol_atm size in addition to the icosahedric grid. 79 [-resol_atm XXXxYYYxZZ] Define which regular grid to compile. 80 [-debug / -dev / -prod] Level of optimization. One of these can be added to all other compile options. Default: -prod. 81 [-subconfig X] Set this option if you want to compile a sub-configuration. X can be: ICOLMDZORINCA, ICOLMDZOR, LMDZORINCA or LMDZOR. 82 If this option is not set, all extracted components are compiled. 83 84 Example 1: Default compilation of IPSLCM7 for resolution LR 85 (Resolution atmos: nbp40 ) 75 Description of all options: 76 77 [-full] Full recompilation of all components. This option can be added to all other options. 78 [-cleannemo] Full recompilation of NEMO component only. 79 [-regular_latlon yes/no] Activate or deactivate compilation of LMDZ dynamics for regular latlon grid. 80 Default resol_atm size is used. This option is set in addition to the compilation of the icosahedric grid. 81 [-resol_atm XXXxYYYxZZ] Define which regular grid to compile. A default grid is set if this option is not used. 82 [-debug / -dev / -prod] Level of optimization. One of these can be added to all other compile options. Default: -prod. 83 [-subconfig X] Set this option if you want to compile a sub-configuration. X can be one of following sub-configurations : 84 ICOLMDZORINCA, ICOLMDZOR, LMDZORINCA, LMDZOR, IPSLCM-reg or IPSLCM 85 By default, all available components are compiled. 86 [-orch4 / -orch22] Choice of ORCHIDEE version. The source code are found in modeles/ORCHIDEE_trunk or modeles/ORCHIDEE_2_2 87 and a link will be set to the choosen model version. Default version is currently ORCHIDEE_2_2 (-orch22). 88 89 90 Example 1: Default compilation of IPSLCM7 86 91 ./compile_ipslcm7.sh 87 92 88 Example 2: Default resolution (LR) compiledin debug mode93 Example 2: Default compilation in debug mode 89 94 ./compile_ipslcm7.sh -debug 90 95 … … 92 97 ./compile_ipslcm7.sh -full 93 98 94 Example 4: Compilation of LMDZ in regular lat-lon for default dimension 144x142x79. 95 ./compile_ipslcm7.sh -regular_latlon 96 Activate regular lat-lon compilation and change resolution to 144x142x95 99 Example 4: Compilation in addition of LMDZ in regular lat-lon for a specific resolution : 97 100 ./compile_ipslcm7.sh -resol_atm 144x142x95 98 101 102 Example 5: Compilation without regular grid (only icosaedric grid) 103 ./compile_ipslcm7.sh -regular_latlon no 104 99 105 Example 5: Compiltion of ORCHIDEE_trunk version 100 Note that for compiling ORCHIDEE trunk you must first have extracted ORCHIDEE_trunk folder in modeles.101 modeles/ORCHIDEE_2_2 folder can be kept at the same time.102 106 ./compile_ipslcm7.sh -orch4 103 ./compile_ipslcm7.sh -regular_latlon -orch4104 105 107 106 108 Example 6: compilation of a specific chemistry for INCA (default is GES) 107 109 ./compile_ipslcm7.sh -chimie NMHC_AER_S 110 111 Example 7: Compilation of sub-configuration LMDZOR : 112 ./compile_ipslcm7.sh -subconfig LMDZOR 108 113 109 114 end_help … … 115 120 "-dev") optmode=dev ; shift ;; 116 121 "-prod") optmode=prod ; shift ;; 117 "-regular_latlon") regular_latlon= yes; shift ;;118 "-resol_atm") regular_latlon=y es; resol_atm=$2 ; shift ; shift ;;122 "-regular_latlon") regular_latlon=$2 ; shift ; shift ;; 123 "-resol_atm") regular_latlon=y ; resol_atm=$2 ; shift ; shift ;; 119 124 "-subconfig") subconfig=$2 ; shift ; shift ;; 120 125 "-full") full_flag="-full"; full_nemo=y ; full_xios="--full" ; full_lmdz="-full" ; full_orch="-full" ; full_oasis=y ; full_inca="-clean" ; full_dyna="-full" ; shift ;; … … 146 151 echo " compinca=$compinca compnemo=$compnemo compoasis=$compoasis compdyna=$compdyna complmdz=y comporch=y compxios=y" >> $outfile 147 152 echo >> $outfile 148 149 153 ### Verification of argument 150 154 # Set argorch depeinding on the version of ORCHIDEE. This is argument needed for the compilation of LMDZ to consider coherent interface. … … 552 556 553 557 ## 2.10 Compile LMDZ for regular latlon configuration 554 if [ $regular_latlon = y es] ; then558 if [ $regular_latlon = y ] ; then 555 559 556 560 cd $modipsl/modeles/LMDZ -
CONFIG/UNIFORM/v7/IPSLCM7/define_config.sh
r6638 r6677 43 43 if [ $subconfig == default ] ; then 44 44 echo ; echo Compilation of all availble components will be done: 45 echo compinca=$compinca compnemo=$compnemo compoasis=$compoasis compdyna=$compdyna complmdz=y comporch=y compxios=y 45 46 elif [ $subconfig == IPSLCM ] || [ $subconfig == IPSLCM-ico ] ; then 47 # Full coupled model currently without INCA 48 if [ $compdyna == n ] || [ $compoasis == n ] || [ $compnemo == n ] ; then 49 echo ; echo It is not possible to compile IPSLCM. 50 echo Source code is missing 51 exit 52 else 53 echo "Compilation of IPSLCM configuration (without INCA) will be done" 54 compnemo=y compoasis=y compdyna=y compinca=n complmdz=y comporch=y compxios=y 55 fi 56 elif [ $subconfig == IPSLCM-reg ] ; then 57 # Coupled model without DYNAMICO and INCA 58 if [ $compoasis == n ] || [ $compnemo == n ] ; then 59 echo ; echo It is not possible to compile IPSLCM-reg. 60 echo Source code is missing 61 exit 62 else 63 echo "Compilation of IPSLCM-reg configuration (without INCA and DYNAMICO) will be done" 64 compnemo=y compoasis=y compdyna=n compinca=n complmdz=y comporch=y compxios=y 65 regular_latlon=y 66 fi 46 67 elif [ $subconfig == ICOLMDZORINCA ] ; then 47 68 if [ $compinca == n ] || [ $compdyna == n ] ; then … … 51 72 else 52 73 echo Compilation of ICOLMDZORINCA configuration will be done 74 compnemo=n compoasis=n compdyna=y compinca=y complmdz=y comporch=y compxios=y 53 75 fi 54 76 elif [ $subconfig == ICOLMDZOR ] ; then … … 59 81 else 60 82 echo Compilation of ICOLMDZOR configuration will be done 83 compnemo=n compoasis=n compdyna=y compinca=n complmdz=y comporch=y compxios=y 61 84 fi 62 85 elif [ $subconfig == LMDZORINCA ] ; then … … 66 89 exit 67 90 else 68 regular_latlon=y es91 regular_latlon=y 69 92 echo Compilation of regular LMDZORINCA configuration for grid $resol_atm will be done 93 compnemo=n compoasis=n compdyna=n compinca=y complmdz=y comporch=y compxios=y 70 94 fi 71 95 elif [ $subconfig == LMDZOR ] ; then 72 regular_latlon=yes73 96 # We always suppose that LMDZ and ORCHIDEE are extracted. No check needs to be done. 97 regular_latlon=y 74 98 echo Compilation of regular LMDZOR configuration for grid $resol_atm will be done 99 compnemo=n compoasis=n compdyna=n compinca=n complmdz=y comporch=y compxios=y 75 100 else 76 echo ; echo The configuration $subconfig is not available 77 echo Choose between ICOLMDZORINCA ICOLMDZOR LMDZORINCA or LMDZOR 78 echo Exit now 101 echo ; echo "The configuration $subconfig is not available" 102 echo "Choose between ICOLMDZORINCA, ICOLMDZOR, LMDZORINCA, LMDZOR" 103 echo " IPSLCM or IPSLCM-reg" 104 echo "Exit now" 79 105 exit 80 106 fi 107 echo compnemo=$compnemo compoasis=$compoasis compdyna=$compdyna compinca=$compinca complmdz=y comporch=y compxios=y 81 108 echo ; 82 109 110 111 # Coherence test for variable regular_latlon which can be set as input argument 112 if [ $regular_latlon == yes ] || [ $regular_latlon == y ] ; then 113 regular_laton=y 114 elif [ $regular_latlon == no ] || [ $regular_latlon == n ] ; then 115 regular_laton=n 116 else 117 echo "regular_latlon=$regular_latlon : This option is not possible." 118 echo "Compile using argument '-regular_latlon' no or '-regular_latlon yes'" 119 echo "Exit now" 120 fi 121
Note: See TracChangeset
for help on using the changeset viewer.