- Timestamp:
- 02/13/20 15:22:03 (4 years ago)
- Location:
- CONFIG/UNIFORM/v6/LMDZORINCA_v6.2
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
CONFIG/UNIFORM/v6/LMDZORINCA_v6.2/EXPERIMENTS/LMDZ/CREATE_amip/config.card
r4625 r4934 69 69 #D-- ATM - 70 70 [ATM] 71 #72 WriteFrequency="1Y"73 71 # If config_Restarts_OverRule == 'n' all params are read 74 72 Restart= n -
CONFIG/UNIFORM/v6/LMDZORINCA_v6.2/EXPERIMENTS/LMDZ/CREATE_clim_360d/config.card
r4625 r4934 69 69 #D-- ATM - 70 70 [ATM] 71 #72 WriteFrequency="1Y"73 71 # If config_Restarts_OverRule == 'n' all params are read 74 72 Restart= n -
CONFIG/UNIFORM/v6/LMDZORINCA_v6.2/EXPERIMENTS/LMDZOR/amip/COMP/lmdz.card
r4789 r4934 37 37 ByPass_hgardfou_mats=n 38 38 39 # Set OutLevel to choose the level of output for LMDZ40 # OutLevel=low/medium/high41 OutLevel=low42 43 # Set COSP activation and output frequency (monthly, daily, HF) = y/n44 LMDZ_COSP_OK=y45 LMDZ_COSP_monthly=n46 LMDZ_COSP_daily=n47 LMDZ_COSP_hf=n48 49 # Set NMC output frequency (monthly, daily, HF) = y/n50 LMDZ_NMC_monthly=n51 LMDZ_NMC_daily=n52 LMDZ_NMC_hf=n53 54 39 # Nugding : ok_guide=y/n 55 40 # If ok_guide=y, add nudging files(u.nc, v.nc, hur.nc,...) in BoundaryFiles section below. 56 41 ok_guide=n 42 43 # Specify which output file to activate and at which output_level 44 # Use an integer to specify the output level or NONE if to deactivate the file 45 # output_level_filename=1 : activate the corresponding file with low output level 46 # output_level_filename=10 : activate the corresponding file with high output level 47 # output_level_filename=NONE : the file will not be written 48 output_level_histmth = 5 49 output_level_histday = NONE 50 output_level_histhf = NONE 51 output_level_histmthNMC = NONE 52 output_level_histdayNMC = NONE 53 output_level_histhfNMC = NONE 54 output_level_histstrataer = NONE 55 output_level_histdaystrataer = NONE 56 output_level_histstn = NONE 57 58 # Activate COSP in config.def and set corresponding output files 59 LMDZ_COSP_OK=y 60 output_level_histmthCOSP = NONE 61 output_level_histdayCOSP = NONE 62 output_level_histhfCOSP = NONE 57 63 58 64 [InitialStateFiles] -
CONFIG/UNIFORM/v6/LMDZORINCA_v6.2/EXPERIMENTS/LMDZOR/amip/config.card
r4625 r4934 80 80 #D-- ATM - 81 81 [ATM] 82 WriteFrequency="1M"83 82 # If config_Restarts_OverRule == 'n' next 4 params are read 84 83 Restart= n … … 93 92 #D-- SRF - 94 93 [SRF] 95 # WriteFrequency is not used any more for ORCHIDEE96 # Output files are now managed in orchidee.card97 WriteFrequency=""98 94 # If config_Restarts_OverRule == 'n' next 4 params are read 99 95 Restart= n … … 108 104 #D-- SBG - STOMATE 109 105 [SBG] 110 # WriteFrequency is not used any more for ORCHIDEE111 # Output files are now managed in stomate.card112 WriteFrequency=""113 106 # If config_Restarts_OverRule == 'n' next 4 params are read 114 107 Restart= n … … 123 116 #D-- IOS - 124 117 [IOS] 125 WriteFrequency=""126 118 # If config_Restarts_OverRule == 'n' next 4 params are read 127 119 Restart= n -
CONFIG/UNIFORM/v6/LMDZORINCA_v6.2/EXPERIMENTS/LMDZOR/clim_pdControl/COMP/lmdz.card
r4789 r4934 37 37 ByPass_hgardfou_mats=n 38 38 39 # Set OutLevel to choose the level of output for LMDZ40 # OutLevel=low/medium/high41 OutLevel=low42 43 # Set COSP activation and output frequency (monthly, daily, HF) = y/n44 LMDZ_COSP_OK=y45 LMDZ_COSP_monthly=n46 LMDZ_COSP_daily=n47 LMDZ_COSP_hf=n48 49 # Set NMC output frequency (monthly, daily, HF) = y/n50 LMDZ_NMC_monthly=n51 LMDZ_NMC_daily=n52 LMDZ_NMC_hf=n53 54 39 # Nugding : ok_guide=y/n 55 40 # If ok_guide=y, add nudging files(u.nc, v.nc, hur.nc,...) in BoundaryFiles section below. 56 41 ok_guide=n 42 43 # Specify which output file to activate and at which output_level 44 # Use an integer to specify the output level or NONE if to deactivate the file 45 # output_level_filename=1 : activate the corresponding file with low output level 46 # output_level_filename=10 : activate the corresponding file with high output level 47 # output_level_filename=NONE : the file will not be written 48 output_level_histmth = 5 49 output_level_histday = NONE 50 output_level_histhf = NONE 51 output_level_histmthNMC = NONE 52 output_level_histdayNMC = NONE 53 output_level_histhfNMC = NONE 54 output_level_histstrataer = NONE 55 output_level_histdaystrataer = NONE 56 output_level_histstn = NONE 57 58 # Activate COSP in config.def and set corresponding output files 59 LMDZ_COSP_OK=y 60 output_level_histmthCOSP = NONE 61 output_level_histdayCOSP = NONE 62 output_level_histhfCOSP = NONE 57 63 58 64 [InitialStateFiles] -
CONFIG/UNIFORM/v6/LMDZORINCA_v6.2/EXPERIMENTS/LMDZOR/clim_pdControl/config.card
r4625 r4934 80 80 #D-- ATM - 81 81 [ATM] 82 WriteFrequency="1M"83 82 # If config_Restarts_OverRule == 'n' next 4 params are read 84 83 Restart= n … … 93 92 #D-- SRF - 94 93 [SRF] 95 # WriteFrequency is not used any more for ORCHIDEE96 # Output files are now managed in orchidee.card97 WriteFrequency=""98 94 # If config_Restarts_OverRule == 'n' next 4 params are read 99 95 Restart= n … … 108 104 #D-- SBG - STOMATE 109 105 [SBG] 110 # WriteFrequency is not used any more for ORCHIDEE111 # Output files are now managed in stomate.card112 WriteFrequency=""113 106 # If config_Restarts_OverRule == 'n' next 4 params are read 114 107 Restart= n … … 123 116 #D-- IOS - 124 117 [IOS] 125 WriteFrequency=""126 118 # If config_Restarts_OverRule == 'n' next 4 params are read 127 119 Restart= n -
CONFIG/UNIFORM/v6/LMDZORINCA_v6.2/GENERAL/DRIVER/lmdz.driver
r4789 r4934 48 48 ConfType=${lmdz_UserChoices_ConfType} 49 49 50 ##- LMDZ output level, to be set in lmdz.card51 if [ X${lmdz_UserChoices_OutLevel} = X ] ; then52 # OutLevel is not set. Take default value low.53 OutLevel=low54 else55 OutLevel=${lmdz_UserChoices_OutLevel}56 fi57 58 ##-- Output frequency purpose ....59 ##-- Initialisation ....60 ok_mensuel=.FALSE.61 ok_journe=.FALSE.62 ok_hf=.FALSE.63 ok_hf3h=.FALSE.64 ok_hf3hm=.FALSE.65 ok_stn=.FALSE.66 67 68 case ${config_UserChoices_PeriodLength} in69 1Y|1y|1M|1m) ok_mensuel=.TRUE. ;;70 5D|5d|1D|1d) ok_journe=.TRUE. ;;71 esac72 73 for frequency in ${config_ATM_WriteFrequency} ; do74 case ${frequency} in75 1M|1m) ok_mensuel=.TRUE. ;;76 esac77 case ${frequency} in78 5D|5d|1D|1d) ok_journe=.TRUE. ;;79 esac80 case ${frequency} in81 HF|hf) ok_hf=.TRUE. ;;82 esac83 case ${frequency} in84 HF3h|hf3h) ok_hf3h=.TRUE. ;;85 esac86 case ${frequency} in87 HF3hm|hf3hm) ok_hf3hm=.TRUE. ;;88 esac89 case ${frequency} in90 STN|stn) ok_stn=.TRUE. ;;91 esac92 done93 94 95 ## Read LMDZ_COSP_OK in lmdz.card96 if [ X${lmdz_UserChoices_LMDZ_COSP_OK} = Xy ] ; then97 ## LMDZ_COSP_OK=y, now read all other COSP variables98 ## Read LMDZ_COSP_monthly in lmdz.card99 if [ X${lmdz_UserChoices_LMDZ_COSP_monthly} = Xy ] ; then100 LMDZ_COSP_monthly=.TRUE.101 else102 LMDZ_COSP_monthly=.FALSE.103 fi104 ## Read LMDZ_COSP_daily in lmdz.card105 if [ X${lmdz_UserChoices_LMDZ_COSP_daily} = Xy ] ; then106 LMDZ_COSP_daily=.TRUE.107 else108 LMDZ_COSP_daily=.FALSE.109 fi110 ## Read LMDZ_COSP_hf in lmdz.card111 if [ X${lmdz_UserChoices_LMDZ_COSP_hf} = Xy ] ; then112 LMDZ_COSP_hf=.TRUE.113 else114 LMDZ_COSP_hf=.FALSE.115 fi116 else117 # LMDZ_COSP_OK=n : All cosp output are deactivated118 LMDZ_COSP_monthly=.FALSE.119 LMDZ_COSP_daily=.FALSE.120 LMDZ_COSP_hf=.FALSE.121 fi122 123 ## Read LMDZ_NMC_monthly in lmdz.card124 if [ X${lmdz_UserChoices_LMDZ_NMC_monthly} = Xy ] ; then125 LMDZ_NMC_monthly=.TRUE.126 else127 LMDZ_NMC_monthly=.FALSE.128 fi129 130 ## Read LMDZ_NMC_daily in lmdz.card131 if [ X${lmdz_UserChoices_LMDZ_NMC_daily} = Xy ] ; then132 LMDZ_NMC_daily=.TRUE.133 else134 LMDZ_NMC_daily=.FALSE.135 fi136 137 ## Read LMDZ_NMC_hf in lmdz.card138 if [ X${lmdz_UserChoices_LMDZ_NMC_hf} = Xy ] ; then139 LMDZ_NMC_hf=.TRUE.140 else141 LMDZ_NMC_hf=.FALSE.142 fi143 144 50 IGCM_debug_PopStack "ATM_Initialize" 145 51 } … … 286 192 IGCM_comp_modifyDefFile nonblocker config.def t_coupl ${LMDZ_t_coupl} 287 193 288 ##-- Add special treatement for CARBON CYCLE 289 if [ X"${lmdz_UserChoices_CARBON_CYCLE}" = X"control" ] || [ X"${lmdz_UserChoices_CARBON_CYCLE}" = X"historical" ] ; then 290 ATM_Carbon_Update 291 fi 292 293 294 ##-- Set LMDZ_COSP_daily1979=y in section UserChoices in lmdz.card to activate 295 ## COSP daily output for years 1979 and later (mandatory for historical CMIP5 run). 296 if ([ X"${lmdz_UserChoices_LMDZ_COSP_daily1979}" = X"y" ] && [ ${year} -ge 1979 ]) ; then 297 LMDZ_COSP_daily=.TRUE. 298 fi 299 300 ## Modifiy 301 IGCM_comp_modifyXmlFile nonblocker file_def_histmth_lmdz.xml histmth enabled ${ok_mensuel} 302 303 IGCM_comp_modifyXmlFile nonblocker file_def_histday_lmdz.xml histday enabled ${ok_journe} 304 305 if [ X${OutLevel} = Xlow ] || [ X${OutLevel} = Xmedium ] ; then 306 IGCM_comp_modifyXmlFile nonblocker file_def_histday_lmdz.xml histday output_level 2 307 else 308 IGCM_comp_modifyXmlFile nonblocker file_def_histday_lmdz.xml histday output_level 5 309 fi 310 311 IGCM_comp_modifyXmlFile nonblocker file_def_histhf_lmdz.xml histhf enabled ${ok_hf} 312 313 if [ X${OutLevel} = Xlow ] ; then 314 IGCM_comp_modifyXmlFile nonblocker file_def_histhf_lmdz.xml histhf output_level 5 315 elif [ X${OutLevel} = Xmedium ] ; then 316 IGCM_comp_modifyXmlFile nonblocker file_def_histhf_lmdz.xml histhf output_level 6 317 elif [ X${OutLevel} = Xhigh ] ; then 318 IGCM_comp_modifyXmlFile nonblocker file_def_histhf_lmdz.xml histhf output_level 7 319 fi 320 321 IGCM_comp_modifyXmlFile nonblocker file_def_histhf3h_lmdz.xml histhf3h enabled ${ok_hf3h} 322 IGCM_comp_modifyXmlFile nonblocker file_def_histhf3hm_lmdz.xml histhf3hm enabled ${ok_hf3hm} 323 324 IGCM_comp_modifyXmlFile nonblocker file_def_histstn_lmdz.xml histstn enabled ${ok_stn} 325 326 IGCM_comp_modifyXmlFile nonblocker file_def_histmthNMC_lmdz.xml histmthNMC enabled ${LMDZ_NMC_monthly} 327 IGCM_comp_modifyXmlFile nonblocker file_def_histdayNMC_lmdz.xml histdayNMC enabled ${LMDZ_NMC_daily} 328 IGCM_comp_modifyXmlFile nonblocker file_def_histhfNMC_lmdz.xml histhfNMC enabled ${LMDZ_NMC_hf} 329 330 IGCM_comp_modifyXmlFile nonblocker file_def_histmthCOSP_lmdz.xml histmthCOSP enabled ${LMDZ_COSP_monthly} 331 IGCM_comp_modifyXmlFile nonblocker file_def_histdayCOSP_lmdz.xml histdayCOSP enabled ${LMDZ_COSP_daily} 332 IGCM_comp_modifyXmlFile nonblocker file_def_histhfCOSP_lmdz.xml histhfCOSP enabled ${LMDZ_COSP_hf} 333 334 # Activate the histstrataer output file only for configuration with interactive stratospheric aersols 335 # done by setting the key word LMDZ_strataero=y in lmdz.card 336 if [ X${lmdz_UserChoices_LMDZ_strataero} = Xy ] ; then 337 IGCM_comp_modifyXmlFile nonblocker file_def_histstrataer_lmdz.xml histstrataer enabled .TRUE. 338 IGCM_comp_modifyXmlFile nonblocker file_def_histdaystrataer_lmdz.xml histdaystrataer enabled .TRUE. 339 else 340 IGCM_comp_modifyXmlFile nonblocker file_def_histstrataer_lmdz.xml histstrataer enabled .FALSE. 341 IGCM_comp_modifyXmlFile nonblocker file_def_histdaystrataer_lmdz.xml histdaystrataer enabled .FALSE. 194 195 196 ## Activate diagnostic output files and set output_level for each file 197 198 # histmth 199 if [ X${lmdz_UserChoices_output_level_histmth} = X ] || [ X${lmdz_UserChoices_output_level_histmth} = XNONE ] ; then 200 IGCM_comp_modifyXmlFile nonblocker file_def_histmth_lmdz.xml histmth enabled FALSE 201 IGCM_comp_modifyXmlFile nonblocker file_def_histmth_lmdz.xml histmth output_level 0 202 else 203 IGCM_comp_modifyXmlFile nonblocker file_def_histmth_lmdz.xml histmth enabled TRUE 204 IGCM_comp_modifyXmlFile nonblocker file_def_histmth_lmdz.xml histmth output_level ${lmdz_UserChoices_output_level_histmth} 205 fi 206 207 # histday 208 if [ X${lmdz_UserChoices_output_level_histday} = X ] || [ X${lmdz_UserChoices_output_level_histday} = XNONE ] ; then 209 IGCM_comp_modifyXmlFile nonblocker file_def_histday_lmdz.xml histday enabled FALSE 210 IGCM_comp_modifyXmlFile nonblocker file_def_histday_lmdz.xml histday output_level 0 211 else 212 IGCM_comp_modifyXmlFile nonblocker file_def_histday_lmdz.xml histday enabled TRUE 213 IGCM_comp_modifyXmlFile nonblocker file_def_histday_lmdz.xml histday output_level ${lmdz_UserChoices_output_level_histday} 214 fi 215 216 # histhf 217 if [ X${lmdz_UserChoices_output_level_histhf} = X ] || [ X${lmdz_UserChoices_output_level_histhf} = XNONE ] ; then 218 IGCM_comp_modifyXmlFile nonblocker file_def_histhf_lmdz.xml histhf enabled FALSE 219 IGCM_comp_modifyXmlFile nonblocker file_def_histhf_lmdz.xml histhf output_level 0 220 else 221 IGCM_comp_modifyXmlFile nonblocker file_def_histhf_lmdz.xml histhf enabled TRUE 222 IGCM_comp_modifyXmlFile nonblocker file_def_histhf_lmdz.xml histhf output_level ${lmdz_UserChoices_output_level_histhf} 223 fi 224 225 # histmthNMC 226 if [ X${lmdz_UserChoices_output_level_histmthNMC} = X ] || [ X${lmdz_UserChoices_output_level_histmthNMC} = XNONE ] ; then 227 IGCM_comp_modifyXmlFile nonblocker file_def_histmthNMC_lmdz.xml histmthNMC enabled FALSE 228 IGCM_comp_modifyXmlFile nonblocker file_def_histmthNMC_lmdz.xml histmthNMC output_level 0 229 else 230 IGCM_comp_modifyXmlFile nonblocker file_def_histmthNMC_lmdz.xml histmthNMC enabled TRUE 231 IGCM_comp_modifyXmlFile nonblocker file_def_histmthNMC_lmdz.xml histmthNMC output_level ${lmdz_UserChoices_output_level_histmthNMC} 232 fi 233 234 # histdayNMC 235 if [ X${lmdz_UserChoices_output_level_histdayNMC} = X ] || [ X${lmdz_UserChoices_output_level_histdayNMC} = XNONE ] ; then 236 IGCM_comp_modifyXmlFile nonblocker file_def_histdayNMC_lmdz.xml histdayNMC enabled FALSE 237 IGCM_comp_modifyXmlFile nonblocker file_def_histdayNMC_lmdz.xml histdayNMC output_level 0 238 else 239 IGCM_comp_modifyXmlFile nonblocker file_def_histdayNMC_lmdz.xml histdayNMC enabled TRUE 240 IGCM_comp_modifyXmlFile nonblocker file_def_histdayNMC_lmdz.xml histdayNMC output_level ${lmdz_UserChoices_output_level_histdayNMC} 241 fi 242 243 # histhfNMC 244 if [ X${lmdz_UserChoices_output_level_histhfNMC} = X ] || [ X${lmdz_UserChoices_output_level_histhfNMC} = XNONE ] ; then 245 IGCM_comp_modifyXmlFile nonblocker file_def_histhfNMC_lmdz.xml histhfNMC enabled FALSE 246 IGCM_comp_modifyXmlFile nonblocker file_def_histhfNMC_lmdz.xml histhfNMC output_level 0 247 else 248 IGCM_comp_modifyXmlFile nonblocker file_def_histhfNMC_lmdz.xml histhfNMC enabled TRUE 249 IGCM_comp_modifyXmlFile nonblocker file_def_histhfNMC_lmdz.xml histhfNMC output_level ${lmdz_UserChoices_output_level_histhfNMC} 250 fi 251 252 # histstrataer 253 if [ X${lmdz_UserChoices_output_level_histstrataer} = X ] || [ X${lmdz_UserChoices_output_level_histstrataer} = XNONE ] ; then 254 IGCM_comp_modifyXmlFile nonblocker file_def_histstrataer_lmdz.xml histstrataer enabled FALSE 255 IGCM_comp_modifyXmlFile nonblocker file_def_histstrataer_lmdz.xml histstrataer output_level 0 256 else 257 IGCM_comp_modifyXmlFile nonblocker file_def_histstrataer_lmdz.xml histstrataer enabled TRUE 258 IGCM_comp_modifyXmlFile nonblocker file_def_histstrataer_lmdz.xml histstrataer output_level ${lmdz_UserChoices_output_level_histstrataer} 259 fi 260 261 # histdaystrataer 262 if [ X${lmdz_UserChoices_output_level_histdaystrataer} = X ] || [ X${lmdz_UserChoices_output_level_histdaystrataer} = XNONE ] ; then 263 IGCM_comp_modifyXmlFile nonblocker file_def_histdaystrataer_lmdz.xml histdaystrataer enabled FALSE 264 IGCM_comp_modifyXmlFile nonblocker file_def_histdaystrataer_lmdz.xml histdaystrataer output_level 0 265 else 266 IGCM_comp_modifyXmlFile nonblocker file_def_histdaystrataer_lmdz.xml histdaystrataer enabled TRUE 267 IGCM_comp_modifyXmlFile nonblocker file_def_histdaystrataer_lmdz.xml histdaystrataer output_level ${lmdz_UserChoices_output_level_histstrataer} 268 fi 269 270 # histstn 271 if [ X${lmdz_UserChoices_output_level_histstn} = X ] || [ X${lmdz_UserChoices_output_level_histstn} = XNONE ] ; then 272 IGCM_comp_modifyXmlFile nonblocker file_def_histstn_lmdz.xml histstn enabled FALSE 273 IGCM_comp_modifyXmlFile nonblocker file_def_histstn_lmdz.xml histstn output_level 0 274 else 275 IGCM_comp_modifyXmlFile nonblocker file_def_histstn_lmdz.xml histstn enabled TRUE 276 IGCM_comp_modifyXmlFile nonblocker file_def_histstn_lmdz.xml histstn output_level ${lmdz_UserChoices_output_level_histstn} 277 fi 278 279 280 # histmthCOSP 281 if [ X${lmdz_UserChoices_output_level_histmthCOSP} = X ] || [ X${lmdz_UserChoices_output_level_histmthCOSP} = XNONE ] ; then 282 IGCM_comp_modifyXmlFile nonblocker file_def_histmthCOSP_lmdz.xml histmthCOSP enabled FALSE 283 IGCM_comp_modifyXmlFile nonblocker file_def_histmthCOSP_lmdz.xml histmthCOSP output_level 0 284 else 285 IGCM_comp_modifyXmlFile nonblocker file_def_histmthCOSP_lmdz.xml histmthCOSP enabled TRUE 286 IGCM_comp_modifyXmlFile nonblocker file_def_histmthCOSP_lmdz.xml histmthCOSP output_level ${lmdz_UserChoices_output_level_histmthCOSP} 287 fi 288 289 290 # histdayCOSP 291 if [ X${lmdz_UserChoices_output_level_histdayCOSP} = X ] || [ X${lmdz_UserChoices_output_level_histdayCOSP} = XNONE ] ; then 292 IGCM_comp_modifyXmlFile nonblocker file_def_histdayCOSP_lmdz.xml histdayCOSP enabled FALSE 293 IGCM_comp_modifyXmlFile nonblocker file_def_histdayCOSP_lmdz.xml histdayCOSP output_level 0 294 else 295 IGCM_comp_modifyXmlFile nonblocker file_def_histdayCOSP_lmdz.xml histdayCOSP enabled TRUE 296 IGCM_comp_modifyXmlFile nonblocker file_def_histdayCOSP_lmdz.xml histdayCOSP output_level ${lmdz_UserChoices_output_level_histdayCOSP} 297 fi 298 299 300 # histhfCOSP 301 if [ X${lmdz_UserChoices_output_level_histhfCOSP} = X ] || [ X${lmdz_UserChoices_output_level_histhfCOSP} = XNONE ] ; then 302 IGCM_comp_modifyXmlFile nonblocker file_def_histhfCOSP_lmdz.xml histhfCOSP enabled FALSE 303 IGCM_comp_modifyXmlFile nonblocker file_def_histhfCOSP_lmdz.xml histhfCOSP output_level 0 304 else 305 IGCM_comp_modifyXmlFile nonblocker file_def_histhfCOSP_lmdz.xml histhfCOSP enabled TRUE 306 IGCM_comp_modifyXmlFile nonblocker file_def_histhfCOSP_lmdz.xml histhfCOSP output_level ${lmdz_UserChoices_output_level_histhfCOSP} 342 307 fi 343 308 … … 405 370 echo "Activate coupling to INCA, set type_trac=inca in run.def" 406 371 IGCM_comp_modifyDefFile blocker run.def type_trac inca 372 IGCM_comp_modifyDefFile blocker run.def iflag_phytrac 1 407 373 elif [ X${config_ListOfComponents_CHM} = Xreprobus ] ; then 408 374 echo "Activate coupling to REPROBUS, set type_trac=repr in run.def" 409 375 IGCM_comp_modifyDefFile blocker run.def type_trac repr 410 376 IGCM_comp_modifyDefFile blocker run.def config_inca none 377 IGCM_comp_modifyDefFile blocker run.def iflag_phytrac 1 411 378 elif [ X${config_UserChoices_ConfigType} = XESMCO2 ] ; then 412 379 echo "ESM config, set type_trac=co2i in run.def" 413 380 IGCM_comp_modifyDefFile blocker run.def type_trac co2i 414 381 IGCM_comp_modifyDefFile blocker run.def config_inca none 382 IGCM_comp_modifyDefFile blocker run.def iflag_phytrac 1 383 elif [ X${lmdz_UserChoices_LMDZ_strataero} = Xy ] ; then 384 echo "No coupling to chemistry model but it is a LMDZ STRATAER configuration, set type_trac=coag in run.def" 385 IGCM_comp_modifyDefFile blocker run.def type_trac coag 386 IGCM_comp_modifyDefFile blocker run.def config_inca none 387 IGCM_comp_modifyDefFile blocker run.def iflag_phytrac 1 415 388 else 416 389 echo "No coupling to chemistry model, set type_trac=lmdz in run.def" 417 390 IGCM_comp_modifyDefFile blocker run.def type_trac lmdz 418 391 IGCM_comp_modifyDefFile blocker run.def config_inca none 419 fi 420 421 422 # run.def : Activate the call to phytrac 423 if [ ! X${lmdz_UserChoices_iflag_phytrac} = X ]; then 424 IGCM_comp_modifyDefFile nonblocker run.def iflag_phytrac ${lmdz_UserChoices_iflag_phytrac} 425 elif [ X${config_UserChoices_ConfigType} = XESMCO2 ] ; then 426 IGCM_comp_modifyDefFile blocker run.def iflag_phytrac 1 427 else 428 IGCM_comp_modifyDefFile nonblocker run.def iflag_phytrac DEFAULT 429 fi 392 IGCM_comp_modifyDefFile blocker run.def iflag_phytrac 0 393 fi 430 394 431 395 # run.def : Activate the new calving … … 528 492 IGCM_comp_modifyDefFile nonblocker config.def carbon_cycle_tr DEFAULT 529 493 IGCM_comp_modifyDefFile nonblocker config.def carbon_cycle_rad DEFAULT 494 fi 495 496 # config.def : Modify parameter ok_volcan if ok_volcan=y or LMDZ_strataero=y in lmdz.card 497 # Note: ok_volcan is a flag allowing a double-call with/without natural forcing (instead of with/without anthro forcing). 498 if [ ! X${lmdz_UserChoices_ok_volcan} = X ] || [ X${lmdz_UserChoices_LMDZ_strataero} = Xy ] ; then 499 IGCM_comp_modifyDefFile nonblocker config.def ok_volcan ${lmdz_UserChoices_ok_volcan} 500 else 501 # Take default value set in config.def 502 IGCM_comp_modifyDefFile nonblocker config.def ok_volcan DEFAULT 530 503 fi 531 504 … … 603 576 fi 604 577 605 # Compression level (if CompressionLevel is not empty)578 # Compression level (if CompressionLevel is not empty) 606 579 if [ ! "X${config_UserChoices_CompressionLevel}" = "X" ] ; then 607 580 echo "NetCDF output files compression level is " ${config_UserChoices_CompressionLevel} 608 581 listfile=$(ls file_def*lmdz.xml) 609 for file in ${listfile} 610 do 582 for file in ${listfile} ; do 611 583 sed -i -e "s/\(compression_level=\"\)[^\"]*\(\"\)/\1${config_UserChoices_CompressionLevel}\2/" ${file} 612 584 done … … 622 594 IGCM_debug_PushStack "ATM_Finalize" 623 595 624 # Add special treatement for CARBON CYCLE 625 if [ X"${lmdz_UserChoices_CARBON_CYCLE}" = X"control" ] || [ X"${lmdz_UserChoices_CARBON_CYCLE}" = X"historical" ] ; then 626 ATM_Carbon_Finalize 627 fi 628 629 echo FINALIZE ATM ! 596 IGCM_debug_Print 1 "FINALIZE ATM !" 630 597 631 598 IGCM_debug_PopStack "ATM_Finalize" 632 599 } 633 600 634 635 636 function ATM_Carbon_Update637 {638 # This fuction will be called only if CARBON_CYCLE is set to control or historical in lmdz.card639 640 IGCM_debug_PushStack "ATM_Carbon_Update"641 642 typeset InitPeriodCo2 InitDateBeginCo2 InitDateEndCo2643 typeset CO2SBG CO2MBG CO2LU CO2_ppm CO2_ppm_prec fCO2_ff644 typeset PathCO2log645 typeset PreviousLinelog LastPeriodDateBegin LastPeriodDateEnd LastDatesPeriod LastPREFIX646 647 if ( ${FirstInitialize} && [ X"${config_ATM_Restart}" = X"n" ] ) ; then648 ##--Initialization of fluxes to an undefined value at the first run649 UndefinedValueCo2=-9999650 InitPeriodCo2=0651 InitDateBeginCo2=${UndefinedValueCo2}652 InitYearCo2=$(( ${year} - 1 ))653 InitDateEndCo2=${InitYearCo2}1231654 fCO2_ff=${UndefinedValueCo2}655 CO2SBG=${UndefinedValueCo2}656 CO2LU=${UndefinedValueCo2}657 CO2MBG=${UndefinedValueCo2}658 CO2_ppm_prec=${UndefinedValueCo2}659 # Get the initial value of atmosp. pco2660 CO2_ppm=${lmdz_UserChoices_co2_init}661 662 IGCM_sys_Cp ${SUBMIT_DIR}/co2.log.init ${SUBMIT_DIR}/co2.log663 IGCM_sys_Chmod u+w ${SUBMIT_DIR}/co2.log664 665 # Save CO2 values in ExeCpuLog variable contents 5 fields666 echo "${InitPeriodCo2} ${InitDateBeginCo2} ${InitDateEndCo2} ${CO2_ppm} ${CO2_ppm_prec} ${fCO2_ff} ${CO2MBG} ${CO2SBG} ${CO2LU}" | \667 gawk '{printf(" %11d | %15s | %15s | %22.15g | %20.15g | %11.8g | %11.8g | %12.8g | %12.8g \n", \668 $1,$2,$3,$4,$5,$6,$7,$8,$9)}' >> ${SUBMIT_DIR}/co2.log669 670 # Get the path where the log file co2.log is671 PathCO2log=${SUBMIT_DIR}672 # Get Previous line in co2.log673 PreviousLinelog=$( tail -1 ${PathCO2log}/co2.log )674 675 else676 677 # NEW parameter in config.card (even for Overule all restarts, you must modify the line after this comment ):678 # !! NEW for Carbone cycle !! Path where to find old co2.log file for restart CO2.679 #SubmitRestartPath=680 if ( ${FirstInitialize} && [ X"${config_ATM_Restart}" = X"y" ] ) ; then681 IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/config.card ATM SubmitRestartPath682 PathCO2log=${config_ATM_SubmitRestartPath}683 Date_r=$( IGCM_date_ConvertFormatToGregorian ${config_ATM_RestartDate} )684 PreviousLinelog=$( grep ${Date_r} ${PathCO2log}/co2.log )685 686 IGCM_sys_Cp ${SUBMIT_DIR}/co2.log.init ${SUBMIT_DIR}/co2.log687 IGCM_sys_Chmod u+w ${SUBMIT_DIR}/co2.log688 689 # Save Last Line of control in new co2.log file690 InitPeriodCo2=0691 InitDateBeginCo2=$( echo "${PreviousLinelog[*]}" | gawk -F '|' '{gsub(" ",""); print $2}' )692 InitDateEndCo2=$( echo "${PreviousLinelog[*]}" | gawk -F '|' '{gsub(" ",""); print $3}' )693 fCO2_ff=$( echo "${PreviousLinelog[*]}" | gawk -F '|' '{gsub(" ",""); print $6}' )694 CO2SBG=$( echo "${PreviousLinelog[*]}" | gawk -F '|' '{gsub(" ",""); print $8}' )695 CO2LU=$( echo "${PreviousLinelog[*]}" | gawk -F '|' '{gsub(" ",""); print $9}' )696 CO2MBG=$( echo "${PreviousLinelog[*]}" | gawk -F '|' '{gsub(" ",""); print $7}' )697 CO2_ppm_prec=$( echo "${PreviousLinelog[*]}" | gawk -F '|' '{gsub(" ",""); print $5}' )698 CO2_ppm=$( echo "${PreviousLinelog[*]}" | gawk -F '|' '{gsub(" ",""); print $4}' )699 700 echo "${InitPeriodCo2} ${InitDateBeginCo2} ${InitDateEndCo2} ${CO2_ppm} ${CO2_ppm_prec} ${fCO2_ff} ${CO2MBG} ${CO2SBG} ${CO2LU}" | \701 gawk '{printf(" %11d | %15s | %15s | %22.15g | %20.15g | %11.8g | %11.8g | %12.8g | %12.8g \n", \702 $1,$2,$3,$4,$5,$6,$7,$8,$9)}' >> ${SUBMIT_DIR}/co2.log703 else704 # Get restart line in co2.log705 PathCO2log=${SUBMIT_DIR}706 PreviousLinelog=$( tail -1 ${PathCO2log}/co2.log )707 # Get the value of atmosp. pco2 in co2.log708 CO2_ppm=$( echo "${PreviousLinelog[*]}" | gawk -F '|' '{gsub(" ",""); print $4}' )709 fi710 711 fi712 713 if [ ${lmdz_UserChoices_CARBON_CYCLE} = historical ] ; then714 # Modify co2_ppm in config.def only for historical run715 # If not historical run, keep co2_ppm value set earlier by IGCM_comp_modifyDefFile716 IGCM_comp_modifyDefFile force config.def co2_ppm ${CO2_ppm}717 fi718 IGCM_debug_PopStack "ATM_Carbon_Update"719 }720 721 722 function ATM_Carbon_Finalize723 {724 # This fuction will be called only if CARBON_CYCLE is set to control or historical in lmdz.card725 726 IGCM_debug_PushStack "ATM_Carbon_Finalize"727 728 typeset CO2SBG_3V CO2SBG CO2MBG CO2SRF CO2LU CO2_ppm CO2_ppm_prec fCO2_ff729 730 # Fossil fuel emission731 if [ ${lmdz_UserChoices_CARBON_CYCLE} = control ] ; then732 # For Control, no fossil fuel emission :733 fCO2_ff=0734 echo "Fossil Fuel for control run :" ${fCO2_ff}735 else736 # For historical, get the fossile fuel file :737 fCO2_ff=$( gawk "{if (match(\$0,\"${year}\ *${month}\")) {print \$3}}" ${SUBMIT_DIR}/PARAM/CMIP5_gridcar_CO2_emissions_fossil_fuel_Andres_1751-2007_monthly_SC.txt )738 echo "Fossil Fuel for historical run :" ${fCO2_ff}739 fi740 741 # Get the value of ocean carbon flux742 CO2MBG=$( ${SUBMIT_DIR}/COMP/lmdz_analyse_pisces_out.awk ocean.output )743 CO2MBG=$( echo ${CO2MBG} | sed -e "s/ *//" )744 echo "Ocean carbon flux :" ${CO2MBG}745 746 # Get the value of land fluxes747 set +A CO2SBG_3V -- $( ${SUBMIT_DIR}/COMP/lmdz_analyse_stomate_out.awk out_orchidee_0000 )748 CO2SRF=$( echo ${CO2SBG_3V[0]} | sed -e "s/ *//" )749 CO2LU=$( echo ${CO2SBG_3V[1]} | sed -e "s/ *//" )750 CO2SBG=$( echo ${CO2SBG_3V[2]} | sed -e "s/ *//" )751 echo "Land carbon flux (NEP) :" ${CO2SRF}752 echo "LU flux (FLUC) :" ${CO2LU}753 echo "Total Land carbon flux (NBP) :" ${CO2SBG}754 755 # Previous CO2756 CO2_ppm_prec=$( echo "${PreviousLinelog[*]}" | gawk -F '|' '{gsub(" ",""); print $4}' )757 echo "Previous CO2 :" ${CO2_ppm_prec}758 759 # Formula760 CO2_ppm=$( echo "${CO2_ppm_prec} + (${fCO2_ff} + ${CO2MBG} + ${CO2SBG}) / 2.12" | bc -l )761 echo "New CO2 :" ${CO2_ppm}762 763 # Save CO2 values in ExeCpuLog variable contents 5 fields764 echo "${CumulPeriod} ${PeriodDateBegin} ${PeriodDateEnd} ${CO2_ppm} ${CO2_ppm_prec} ${fCO2_ff} ${CO2MBG} ${CO2SBG} ${CO2LU}" | \765 gawk '{printf(" %11d | %15s | %15s | %22.15g | %20.15g | %11.8g | %11.8g | %12.8g | %12.8g \n", \766 $1,$2,$3,$4,$5,$6,$7,$8,$9)}' >> ${SUBMIT_DIR}/co2.log767 768 IGCM_debug_PopStack "ATM_Carbon_Finalize"769 } -
CONFIG/UNIFORM/v6/LMDZORINCA_v6.2/GENERAL/DRIVER/orchidee.driver
r4625 r4934 169 169 fi 170 170 171 # Compression level (if CompressionLevel is not empty)171 # Compression level (if CompressionLevel is not empty) 172 172 if [ ! "X${config_UserChoices_CompressionLevel}" = "X" ] ; then 173 173 echo "NetCDF output files compression level is " ${config_UserChoices_CompressionLevel} 174 174 listfile=$(ls file_def*orchidee.xml) 175 for file in ${listfile} 176 do 175 for file in ${listfile} ; do 177 176 sed -i -e "s/\(compression_level=\"\)[^\"]*\(\"\)/\1${config_UserChoices_CompressionLevel}\2/" ${file} 178 177 done -
CONFIG/UNIFORM/v6/LMDZORINCA_v6.2/GENERAL/PARAM/config.def_actuel
r4631 r4934 1 ## level_coupling_esm : 0(pas d'echange de carbone), 2 (change entre LMDZ/CPL/NEMO et LMDZ/ORCHIDEE) 2 level_coupling_esm= _AUTO_: DEFAULT = 0 3 ## carbon_cycle_cpl: couplage des flux de carbone ATM/OCE, ATM/SRF 4 carbon_cycle_cpl=_AUTO_ : DEFAULT=n 5 ## carbon_cycle_tr: transport atmospherique de CO2 dans LMDZ 6 carbon_cycle_tr=_AUTO_ : DEFAULT=n 7 ## carbon_cycle_rad: utilisation de traceur CO2 dans le code radiatif 8 carbon_cycle_rad=_AUTO_ : DEFAULT=n 9 1 10 ## Cycle diurne ou non 2 11 iflag_cycle_diurne=1 … … 72 81 # 73 82 # Aerosols stratospheriques utilises par defaut 74 flag_aerosol_strat= _AUTO_: DEFAULT =283 flag_aerosol_strat=_AUTO_ : DEFAULT=2 75 84 # Diag VolMIP to get volcanic aerosols effects instead of tropospheric ones 76 85 ok_volcan=n -
CONFIG/UNIFORM/v6/LMDZORINCA_v6.2/GENERAL/PARAM/config.def_annuel
r4631 r4934 1 # level_coupling_esm : 0(pas d'echange de carbone), 2 (change entre LMDZ/CPL/NEMO et LMDZ/ORCHIDEE) 2 level_coupling_esm= _AUTO_: DEFAULT = 0 3 ## carbon_cycle_cpl: couplage des flux de carbone ATM/OCE, ATM/SRF 4 carbon_cycle_cpl=_AUTO_ : DEFAULT=n 5 ## carbon_cycle_tr: transport atmospherique de CO2 dans LMDZ 6 carbon_cycle_tr=_AUTO_ : DEFAULT=n 7 ## carbon_cycle_rad: utilisation de traceur CO2 dans le code radiatif 8 carbon_cycle_rad=_AUTO_ : DEFAULT=n 9 1 10 ## Cycle diurne ou non 2 11 iflag_cycle_diurne=1 … … 73 82 # 74 83 # Aerosols stratospheriques utilises par defaut 75 flag_aerosol_strat= _AUTO_: DEFAULT =284 flag_aerosol_strat=_AUTO_ : DEFAULT=2 76 85 # Diag VolMIP to get volcanic aerosols effects instead of tropospheric ones 77 86 ok_volcan=n -
CONFIG/UNIFORM/v6/LMDZORINCA_v6.2/GENERAL/PARAM/config.def_preind
r4631 r4934 1 ## level_coupling_esm : 0(pas d'echange de carbone), 2 (change entre LMDZ/CPL/NEMO et LMDZ/ORCHIDEE) 2 level_coupling_esm= _AUTO_: DEFAULT = 0 3 ## carbon_cycle_cpl: couplage des flux de carbone ATM/OCE, ATM/SRF 4 carbon_cycle_cpl=_AUTO_ : DEFAULT=n 5 ## carbon_cycle_tr: transport atmospherique de CO2 dans LMDZ 6 carbon_cycle_tr=_AUTO_ : DEFAULT=n 7 ## carbon_cycle_rad: utilisation de traceur CO2 dans le code radiatif 8 carbon_cycle_rad=_AUTO_ : DEFAULT=n 9 1 10 ## Cycle diurne ou non 2 11 iflag_cycle_diurne=1 … … 73 82 # Aerosols stratospheriques utilises par defaut 74 83 # 75 flag_aerosol_strat= _AUTO_: DEFAULT =284 flag_aerosol_strat=_AUTO_ : DEFAULT=2 76 85 # Diag VolMIP to get volcanic aerosols effects instead of tropospheric ones 77 86 ok_volcan=n -
CONFIG/UNIFORM/v6/LMDZORINCA_v6.2/GENERAL/PARAM/orchidee.def_CWRR
r4625 r4934 133 133 134 134 # Activate downregulation for CO2 135 DOWNREGULATION_CO2=y 135 # Set DOWNREGULATION_CO2_NEW=y to activate new revised version of 136 # downregulation parametrization available in ORCHIDEE_2_0 for 137 # configurations v6.1.11 or later or in ORCHIDEE_2_2 from revision 6393 and later. 138 # When DOWNREGULATION_CO2_NEW=y, 139 # DOWNREGULATION_CO2 will be forced to false by the model. 140 DOWNREGULATION_CO2_NEW=y 136 141 DOWNREGULATION_CO2_BASELEVEL=380. 137 142 -
CONFIG/UNIFORM/v6/LMDZORINCA_v6.2/GENERAL/PARAM/run.def
r4625 r4934 55 55 no_ter_antartique=y 56 56 ### Do not call phytrac to speed things up 57 iflag_phytrac=_AUTO _: DEFAULT = 057 iflag_phytrac=_AUTOBLOCKER_: DEFAULT = 0 58 58 ### cpl_old_calving : use n for DYNAMICO and new coupling weight(MR025) 59 59 cpl_old_calving = _AUTO_
Note: See TracChangeset
for help on using the changeset viewer.