- Timestamp:
- 09/26/14 12:18:11 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
CONFIG/UNIFORM/v6/LMDZORINCA_v6/GENERAL/DRIVER/lmdz.driver
r2330 r2346 1 1 #!/bin/ksh 2 2 #----------------------------------------------------------------- 3 function LMDZ_sed4 {5 # Usage : LMDZ_sed filedef var_name myvalue6 # In file filedef modify the line containing var_name=xxx into var_name=myvalue7 IGCM_debug_PushStack "LMDZ_sed"8 9 # Test if the fichier exist10 if [ ! -f ${1} ] ; then11 echo "WARNING : ${1} file does not exist. Following will not be done : LMDZ_sed : ${1} ${2} ${3}"12 IGCM_debug_PopStack "LMDZ_sed"13 return14 fi15 16 sed -e "s/^${2}\ *=.*/${2}= ${3}/" ${1} > ${1}.tmp17 RET=$?18 echo "LMDZ_sed : ${1} ${2} ${3}"19 \mv ${1}.tmp ${1}20 21 IGCM_debug_PopStack "LMDZ_sed"22 return $RET23 }24 function LMDZ_sed_default25 {26 # Usage : LMDZ_sed_default filedef var_name27 # In file filedef modify the line "var_name=xxx DEFAULT= myvalue"28 # into "var_name=myvalue"29 IGCM_debug_PushStack "LMDZ_sed_default"30 31 DefValue=$( grep ${2} ${1} | awk -F"DEFAULT.=*" '{print $2}')32 33 LMDZ_sed ${1} ${2} $DefValue34 IGCM_debug_PopStack "LMDZ_sed_default"35 return $RET36 }37 38 39 3 function ATM_Initialize 40 4 { … … 260 224 ## If forcing file exist in run directory, read values for the current year 261 225 ## and set in config.def. If not use the default value set in config.def 226 227 # Read value for solaire from file SOLARANDVOLCANOES.txt. If file not existing, take DEFAULT value from file. 262 228 if [ -f SOLARANDVOLCANOES.txt ] ; then 263 IPCC_SOLAR=`grep Annee_${year} SOLARANDVOLCANOES.txt | awk -F= '{print $2}'`264 if [ X"${ IPCC_SOLAR}" = X ] ; then229 value=`grep Annee_${year} SOLARANDVOLCANOES.txt | awk -F= '{print $2}'` 230 if [ X"${value}" = X ] ; then 265 231 # The grep returned empty variable, stop execution 266 232 IGCM_debug_Exit "The file SOLARANDVOLCANOES.txt do not contain the current year." 267 233 IGCM_debug_Verif_Exit 268 else269 # Set new variable in config.def file270 LMDZ_sed config.def solaire ${IPCC_SOLAR}271 272 else273 LMDZ_sed_default config.def solaire 274 fi 275 234 fi 235 else 236 value=DEFAULT 237 fi 238 IGCM_comp_modifyDefFile nonblocker config.def solaire $value 239 240 241 # Read value for co2_ppm from file CO2.txt. If file not existing, take DEFAULT value from file. 276 242 if [ -f CO2.txt ] ; then 277 IPCC_CO2=`grep Annee_${year} CO2.txt | awk -F= '{print $2}'`278 if [ X"${ IPCC_CO2}" = X ] ; then243 value=`grep Annee_${year} CO2.txt | awk -F= '{print $2}'` 244 if [ X"${value}" = X ] ; then 279 245 # The grep returned empty variable, stop execution 280 246 IGCM_debug_Exit "The file CO2.txt do not contain the current year." 281 247 IGCM_debug_Verif_Exit 282 else283 # Set new variable in config.def file284 LMDZ_sed config.def co2_ppm ${IPCC_CO2}285 286 else287 LMDZ_sed_default config.def co2_ppm 288 fi 289 248 fi 249 else 250 value=DEFAULT 251 fi 252 IGCM_comp_modifyDefFile nonblocker config.def co2_ppm $value 253 254 255 # Read value for CH4_ppb from file CH4.txt. If file not existing, take DEFAULT value from file. 290 256 if [ -f CH4.txt ] ; then 291 IPCC_CH4=`grep Annee_${year} CH4.txt | awk -F= '{print $2}'`292 if [ X"${ IPCC_CH4}" = X ] ; then257 value=`grep Annee_${year} CH4.txt | awk -F= '{print $2}'` 258 if [ X"${value}" = X ] ; then 293 259 # The grep returned empty variable, stop execution 294 260 IGCM_debug_Exit "The file CH4.txt do not contain the current year." 295 261 IGCM_debug_Verif_Exit 296 else297 # Set new variable in config.def file298 LMDZ_sed config.def CH4_ppb ${IPCC_CH4}299 300 else301 LMDZ_sed_default config.def CH4_ppb 302 fi 303 262 fi 263 else 264 value=DEFAULT 265 fi 266 IGCM_comp_modifyDefFile nonblocker config.def CH4_ppb $value 267 268 269 # Read value for N2O_ppb from file N2O.txt. If file not existing, take DEFAULT value from file. 304 270 if [ -f N2O.txt ] ; then 305 IPCC_N2O=`grep Annee_${year} N2O.txt | awk -F= '{print $2}'`306 if [ X"${ IPCC_N2O}" = X ] ; then271 value=`grep Annee_${year} N2O.txt | awk -F= '{print $2}'` 272 if [ X"${value}" = X ] ; then 307 273 # The grep returned empty variable, stop execution 308 274 IGCM_debug_Exit "The file N2O.txt do not contain the current year." 309 275 IGCM_debug_Verif_Exit 310 else 311 # Set new variable in config.def file 312 LMDZ_sed config.def N2O_ppb ${IPCC_N2O} 313 fi 314 else 315 LMDZ_sed_default config.def N2O_ppb 316 fi 317 276 fi 277 else 278 value=DEFAULT 279 fi 280 IGCM_comp_modifyDefFile nonblocker config.def N2O_ppb $value 281 282 # Read value for CFC11_ppt from file CFC11.txt. If file not existing, take DEFAULT value from file. 318 283 if [ -f CFC11.txt ] ; then 319 IPCC_CFC11=`grep Annee_${year} CFC11.txt | awk -F= '{print $2}'`320 if [ X"${ IPCC_CFC11}" = X ] ; then284 value=`grep Annee_${year} CFC11.txt | awk -F= '{print $2}'` 285 if [ X"${value}" = X ] ; then 321 286 # The grep returned empty variable, stop execution 322 287 IGCM_debug_Exit "The file CFC11.txt do not contain the current year." 323 288 IGCM_debug_Verif_Exit 324 else325 # Set new variable in config.def file326 LMDZ_sed config.def CFC11_ppt ${IPCC_CFC11}327 328 else329 LMDZ_sed_default config.def CFC11_ppt 330 fi 331 289 fi 290 else 291 value=DEFAULT 292 fi 293 IGCM_comp_modifyDefFile nonblocker config.def CFC11_ppt $value 294 295 296 # Read value for CFC12_ppt from file CFC12.txt. If file not existing, take DEFAULT value from file. 332 297 if [ -f CFC12.txt ] ; then 333 IPCC_CFC12=`grep Annee_${year} CFC12.txt | awk -F= '{print $2}'`334 if [ X"${ IPCC_CFC12}" = X ] ; then298 value=`grep Annee_${year} CFC12.txt | awk -F= '{print $2}'` 299 if [ X"${value}" = X ] ; then 335 300 # The grep returned empty variable, stop execution 336 301 IGCM_debug_Exit "The file CFC12.txt do not contain the current year." 337 302 IGCM_debug_Verif_Exit 338 else 339 # Set new variable in config.def file 340 LMDZ_sed config.def CFC12_ppt ${IPCC_CFC12} 341 fi 342 else 343 LMDZ_sed_default config.def CFC12_ppt 344 fi 345 303 fi 304 else 305 value=DEFAULT 306 fi 307 IGCM_comp_modifyDefFile nonblocker config.def CFC12_ppt $value 308 309 310 ## Coupling Time Step : Take value of FreqCoupling set in oasis.card or if it is not set, take default value 86400 311 LMDZ_t_coupl=${oasis_UserChoices_FreqCoupling:-86400} 312 IGCM_debug_Print 3 "LMDZ_t_coupl " ${LMDZ_t_coupl} 313 IGCM_comp_modifyDefFile nonblocker config.def t_coupl ${LMDZ_t_coupl} 346 314 347 315 ##-- Add special treatement for CARBON CYCLE … … 360 328 ## output.def parameters 361 329 # columns in phys_output_filekeys refer to the filenames given in phys_out_filenames in output.def : 362 # histmth histday histhf histfh3h histhf3hm histstn 363 LMDZ_sed output.def phys_out_filekeys "${ok_mensuel} ${ok_journe} ${ok_hf} ${ok_hf3h} ${ok_hf3hm} ${ok_stn}" 364 LMDZ_sed output.def ecrit_ISCCP ${LMDZ_ecrit_ISCCP} 365 LMDZ_sed output.def ok_cosp ${LMDZ_COSP_OK} 366 LMDZ_sed output.def ok_mensuelCOSP ${LMDZ_COSP_monthly} 367 LMDZ_sed output.def ok_journeCOSP ${LMDZ_COSP_daily} 368 LMDZ_sed output.def ok_hfCOSP ${LMDZ_COSP_hf} 369 LMDZ_sed output.def ok_histNMC "${LMDZ_NMC_monthly} ${LMDZ_NMC_daily} ${LMDZ_NMC_hf}" 330 # histmth histday histhf histhf3h histhf3hm histstn 331 IGCM_comp_modifyDefFile nonblocker output.def phys_out_filekeys "${ok_mensuel} ${ok_journe} ${ok_hf} ${ok_hf3h} ${ok_hf3hm} ${ok_stn}" 332 IGCM_comp_modifyDefFile nonblocker output.def ecrit_ISCCP ${LMDZ_ecrit_ISCCP} 333 IGCM_comp_modifyDefFile nonblocker output.def ok_cosp ${LMDZ_COSP_OK} 334 IGCM_comp_modifyDefFile nonblocker output.def ok_mensuelCOSP ${LMDZ_COSP_monthly} 335 IGCM_comp_modifyDefFile nonblocker output.def ok_journeCOSP ${LMDZ_COSP_daily} 336 IGCM_comp_modifyDefFile nonblocker output.def ok_hfCOSP ${LMDZ_COSP_hf} 337 IGCM_comp_modifyDefFile nonblocker output.def ok_histNMC "${LMDZ_NMC_monthly} ${LMDZ_NMC_daily} ${LMDZ_NMC_hf}" 338 339 # XIOS XML definition 340 # Default init : files are desactivated 341 IGCM_comp_modifyXmlFile force file_def_histmth_lmdz.xml histmth enabled .FALSE. 342 IGCM_comp_modifyXmlFile force file_def_histday_lmdz.xml histday enabled .FALSE. 343 IGCM_comp_modifyXmlFile force file_def_histhf_lmdz.xml histhf enabled .FALSE. 344 # IGCM_comp_modifyXmlFile force file_def_histhf3h_lmdz.xml histhf3h enabled .FALSE. 345 # IGCM_comp_modifyXmlFile force file_def_histhf3hm_lmdz.xml histhf3hm enabled .FALSE. 346 IGCM_comp_modifyXmlFile force file_def_histstn_lmdz.xml histstn enabled .FALSE. 347 IGCM_comp_modifyXmlFile force file_def_histmthNMC_lmdz.xml histmthNMC enabled .FALSE. 348 IGCM_comp_modifyXmlFile force file_def_histdayNMC_lmdz.xml histdayNMC enabled .FALSE. 349 IGCM_comp_modifyXmlFile force file_def_histhfNMC_lmdz.xml histhfNMC enabled .FALSE. 350 if [ X${lmdz_UserChoices_XIOS} = Xy ] ; then 351 # Default output level : 5 352 IGCM_comp_modifyXmlFile force file_def_histmth_lmdz.xml histmth output_level 5 353 IGCM_comp_modifyXmlFile force file_def_histday_lmdz.xml histday output_level 5 354 IGCM_comp_modifyXmlFile force file_def_histhf_lmdz.xml histhf output_level 5 355 # IGCM_comp_modifyXmlFile force file_def_histhf3h_lmdz.xml histhf3h output_level 5 356 # IGCM_comp_modifyXmlFile force file_def_histhf3hm_lmdz.xml histhf3hm output_level 5 357 IGCM_comp_modifyXmlFile force file_def_histstn_lmdz.xml histstn output_level 5 358 IGCM_comp_modifyXmlFile force file_def_histmthNMC_lmdz.xml histmthNMC output_level 5 359 IGCM_comp_modifyXmlFile force file_def_histdayNMC_lmdz.xml histdayNMC output_level 5 360 IGCM_comp_modifyXmlFile force file_def_histhfNMC_lmdz.xml histhfNMC output_level 5 361 # Filling of XML files 362 if [ X${ok_mensuel} = Xy ] ; then 363 IGCM_comp_modifyXmlFile force file_def_histmth_lmdz.xml histmth enabled .TRUE. 364 IGCM_comp_modifyXmlFile force file_def_histmth_lmdz.xml histmth output_freq 1mo 365 IGCM_comp_modifyXmlFile force file_def_histmth_lmdz.xml histmth name histmth 366 fi 367 if [ X${ok_journe} = Xy ] ; then 368 IGCM_comp_modifyXmlFile force file_def_histday_lmdz.xml histday enabled .TRUE. 369 IGCM_comp_modifyXmlFile force file_def_histday_lmdz.xml histday output_freq 1d 370 IGCM_comp_modifyXmlFile force file_def_histday_lmdz.xml histday name histday 371 if [ X${OutLevel} = Xlow ] || [ X${OutLevel} = Xmedium ] ; then 372 IGCM_comp_modifyXmlFile force file_def_histday_lmdz.xml histday output_level 2 373 fi 374 fi 375 if [ X${ok_hf} = Xy ] ; then 376 IGCM_comp_modifyXmlFile force file_def_histhf_lmdz.xml histhf enabled .TRUE. 377 IGCM_comp_modifyXmlFile force file_def_histhf_lmdz.xml histhf output_freq 6h 378 IGCM_comp_modifyXmlFile force file_def_histhf_lmdz.xml histhf name histhf 379 if [ X${OutLevel} = Xlow ] ; then 380 IGCM_comp_modifyXmlFile force file_def_histhf_lmdz.xml histhf output_level 2 381 fi 382 fi 383 # if [ X${ok_hf3h} = Xy ] ; then 384 # IGCM_comp_modifyXmlFile force file_def_histhf3h_lmdz.xml histhf3h enabled .TRUE. 385 # IGCM_comp_modifyXmlFile force file_def_histhf3h_lmdz.xml histhf3h output_freq 3h 386 # IGCM_comp_modifyXmlFile force file_def_histhf3h_lmdz.xml histhf3h name histhf3h 387 # fi 388 # if [ X${ok_hf3hm} = Xy ] ; then 389 # IGCM_comp_modifyXmlFile force file_def_histhf3hm_lmdz.xml histhf3hm enabled .TRUE. 390 # IGCM_comp_modifyXmlFile force file_def_histhf3hm_lmdz.xml histhf3hm output_freq 3h 391 # IGCM_comp_modifyXmlFile force file_def_histhf3hm_lmdz.xml histhf3hm name histhf3hm 392 # fi 393 if [ X${ok_stn} = Xy ] ; then 394 IGCM_comp_modifyXmlFile force file_def_histstn_lmdz.xml histstn enabled .TRUE. 395 IGCM_comp_modifyXmlFile force file_def_histstn_lmdz.xml histstn output_freq 1800s 396 IGCM_comp_modifyXmlFile force file_def_histstn_lmdz.xml histstn name histstn 397 fi 398 if [ X${LMDZ_NMC_monthly} = Xy ] ; then 399 IGCM_comp_modifyXmlFile force file_def_histmthNMC_lmdz.xml histmthNMC enabled .TRUE. 400 IGCM_comp_modifyXmlFile force file_def_histmthNMC_lmdz.xml histmthNMC output_freq 1mo 401 IGCM_comp_modifyXmlFile force file_def_histmthNMC_lmdz.xml histmthNMC name histmthNMC 402 fi 403 if [ X${LMDZ_NMC_daily} = Xy ] ; then 404 IGCM_comp_modifyXmlFile force file_def_histdayNMC_lmdz.xml histdayNMC enabled .TRUE. 405 IGCM_comp_modifyXmlFile force file_def_histdayNMC_lmdz.xml histdayNMC output_freq 1d 406 IGCM_comp_modifyXmlFile force file_def_histdayNMC_lmdz.xml histdayNMC name histdayNMC 407 fi 408 if [ X${LMDZ_NMC_hf} = Xy ] ; then 409 IGCM_comp_modifyXmlFile force file_def_histhfNMC_lmdz.xml histhfNMC enabled .TRUE. 410 IGCM_comp_modifyXmlFile force file_def_histhfNMC_lmdz.xml histhfNMC output_freq 6h 411 IGCM_comp_modifyXmlFile force file_def_histhfNMC_lmdz.xml histhfNMC name histhfNMC 412 fi 413 fi 370 414 371 415 ## gcm.def parameters : 372 # Modification only for new physics 373 if [ X${LMDZ_Physics} = X"NPv3.1" ] ; then 374 LMDZ_sed gcm.def iphysiq 5 375 else 376 LMDZ_sed_default gcm.def iphysiq 377 fi 416 # Modification of variable iphysiq depending on the physics 417 if [ X${LMDZ_Physics} = X"AP" ] ; then 418 value=10 419 else 420 value=DEFAULT 421 fi 422 IGCM_comp_modifyDefFile nonblocker gcm.def iphysiq $value 378 423 379 424 380 425 ## run.def parameters 381 LMDZ_sedrun.def dayref ${InitDay}382 LMDZ_sedrun.def nday ${PeriodLengthInDays}383 LMDZ_sedrun.def raz_date ${RAZ_DATE}384 LMDZ_sedrun.def periodav ${LMDZ_periodav}385 LMDZ_sedrun.def adjust ${LMDZ_adjust}426 IGCM_comp_modifyDefFile blocker run.def dayref ${InitDay} 427 IGCM_comp_modifyDefFile blocker run.def nday ${PeriodLengthInDays} 428 IGCM_comp_modifyDefFile blocker run.def raz_date ${RAZ_DATE} 429 IGCM_comp_modifyDefFile blocker run.def periodav ${LMDZ_periodav} 430 IGCM_comp_modifyDefFile nonblocker run.def adjust ${LMDZ_adjust} 386 431 387 432 # Set anneeref different for gcm and ce0l … … 390 435 if [ -f create_etat0_limit* ] || [ -f ce0l* ] && [ ! -f lmdz.x ] ; then 391 436 # for case ce0l : always take current year 392 LMDZ_sedrun.def anneeref ${year}393 LMDZ_sedrun.def calend ${CalendarTypeForCreate}437 IGCM_comp_modifyDefFile blocker run.def anneeref ${year} 438 IGCM_comp_modifyDefFile blocker run.def calend ${CalendarTypeForCreate} 394 439 else 395 440 # for case gcm : take first year of simulation 396 LMDZ_sedrun.def anneeref ${InitYear}397 LMDZ_sedrun.def calend ${CalendarTypeForLmdz}441 IGCM_comp_modifyDefFile blocker run.def anneeref ${InitYear} 442 IGCM_comp_modifyDefFile blocker run.def calend ${CalendarTypeForLmdz} 398 443 fi 399 444 400 445 # Activate creation of file grilles_gcm.nc only at first period 401 446 if [ ${CumulPeriod} -eq 1 ] ; then 402 LMDZ_sedrun.def grilles_gcm_netcdf y403 else 404 LMDZ_sedrun.def grilles_gcm_netcdf n447 IGCM_comp_modifyDefFile nonblocker run.def grilles_gcm_netcdf y 448 else 449 IGCM_comp_modifyDefFile nonblocker run.def grilles_gcm_netcdf n 405 450 fi 406 451 … … 411 456 if [ X${config_ListOfComponents_SRF} = Xorchidee ] ; then 412 457 echo "Activate ORCHIDEE, set VEGET=y in run.def" 413 LMDZ_sedrun.def VEGET y458 IGCM_comp_modifyDefFile blocker run.def VEGET y 414 459 else 415 460 echo "No ORCHIDEE, set VEGET=n in run.def" 416 LMDZ_sedrun.def VEGET n461 IGCM_comp_modifyDefFile blocker run.def VEGET n 417 462 fi 418 463 419 464 if [ X${config_ListOfComponents_CPL} = Xoasis ] ; then 420 465 echo "Activate coupling to ocean, set type_ocean=couple in run.def" 421 LMDZ_sedrun.def type_ocean couple466 IGCM_comp_modifyDefFile blocker run.def type_ocean couple 422 467 else 423 468 echo "LMDZ is running in forced mode without ocean model, set type_ocean=force in run.def" 424 LMDZ_sedrun.def type_ocean force469 IGCM_comp_modifyDefFile blocker run.def type_ocean force 425 470 fi 426 471 427 472 if [ X${config_ListOfComponents_CHM} = Xinca ] ; then 428 473 echo "Activate coupling to INCA, set type_trac=inca in run.def" 429 LMDZ_sedrun.def type_trac inca474 IGCM_comp_modifyDefFile blocker run.def type_trac inca 430 475 elif [ X${config_ListOfComponents_CHM} = Xreprobus ] ; then 431 476 echo "Activate coupling to REPROBUS, set type_trac=repr in run.def" 432 LMDZ_sedrun.def type_trac repr433 LMDZ_sedrun.def config_inca none477 IGCM_comp_modifyDefFile blocker run.def type_trac repr 478 IGCM_comp_modifyDefFile blocker run.def config_inca none 434 479 else 435 480 echo "No coupling to chemistry model, set type_trac=lmdz in run.def" 436 LMDZ_sedrun.def type_trac lmdz437 LMDZ_sedrun.def config_inca none481 IGCM_comp_modifyDefFile blocker run.def type_trac lmdz 482 IGCM_comp_modifyDefFile blocker run.def config_inca none 438 483 fi 439 484 … … 441 486 # config.def : Activate direct radiative effect if ok_ade=y 442 487 if [ ! X${lmdz_UserChoices_ok_ade} = X ]; then 443 LMDZ_sedconfig.def ok_ade ${lmdz_UserChoices_ok_ade}444 else 445 LMDZ_sedconfig.def ok_ade n488 IGCM_comp_modifyDefFile nonblocker config.def ok_ade ${lmdz_UserChoices_ok_ade} 489 else 490 IGCM_comp_modifyDefFile nonblocker config.def ok_ade n 446 491 fi 447 492 448 493 # config.def : Activate indirect radiative effect if ok_aie=y 449 494 if [ ! X${lmdz_UserChoices_ok_aie} = X ]; then 450 LMDZ_sedconfig.def ok_aie ${lmdz_UserChoices_ok_aie}451 else 452 LMDZ_sedconfig.def ok_aie n495 IGCM_comp_modifyDefFile nonblocker config.def ok_aie ${lmdz_UserChoices_ok_aie} 496 else 497 IGCM_comp_modifyDefFile nonblocker config.def ok_aie n 453 498 fi 454 499 455 500 # config.def : Activate online aerosol coupled model if aerosol_couple=y 456 501 if [ ! X${lmdz_UserChoices_aerosol_couple} = X ]; then 457 LMDZ_sedconfig.def aerosol_couple ${lmdz_UserChoices_aerosol_couple}458 else 459 LMDZ_sedconfig.def aerosol_couple n502 IGCM_comp_modifyDefFile nonblocker config.def aerosol_couple ${lmdz_UserChoices_aerosol_couple} 503 else 504 IGCM_comp_modifyDefFile nonblocker config.def aerosol_couple n 460 505 fi 461 506 462 507 # config.def : Activate reading of ozone in climatology if read_climoz=2 463 508 if [ ! X${lmdz_UserChoices_read_climoz} = X ]; then 464 LMDZ_sedconfig.def read_climoz ${lmdz_UserChoices_read_climoz}465 else 466 LMDZ_sedconfig.def read_climoz 0509 IGCM_comp_modifyDefFile nonblocker config.def read_climoz ${lmdz_UserChoices_read_climoz} 510 else 511 IGCM_comp_modifyDefFile nonblocker config.def read_climoz 0 467 512 fi 468 513 … … 471 516 # =5 => dust only =6 => all aerosol 472 517 if [ ! X${lmdz_UserChoices_flag_aerosol} = X ]; then 473 LMDZ_sedconfig.def flag_aerosol ${lmdz_UserChoices_flag_aerosol}474 else 475 LMDZ_sedconfig.def flag_aerosol 0518 IGCM_comp_modifyDefFile nonblocker config.def flag_aerosol ${lmdz_UserChoices_flag_aerosol} 519 else 520 IGCM_comp_modifyDefFile nonblocker config.def flag_aerosol 0 476 521 fi 477 522 478 523 # config.def : Activate calcul of Cloud droplet number concentration if ok_cdnc=y 479 524 if [ ! X${lmdz_UserChoices_ok_cdnc} = X ]; then 480 LMDZ_sedconfig.def ok_cdnc ${lmdz_UserChoices_ok_cdnc}481 else 482 LMDZ_sedconfig.def ok_cdnc n525 IGCM_comp_modifyDefFile nonblocker config.def ok_cdnc ${lmdz_UserChoices_ok_cdnc} 526 else 527 IGCM_comp_modifyDefFile nonblocker config.def ok_cdnc n 483 528 fi 484 529 485 530 # guide.def : Activate nudging if ok_guide=y set in lmdz.card 486 531 if [ ! X${lmdz_UserChoices_ok_guide} = X ] ; then 487 LMDZ_sedguide.def ok_guide ${lmdz_UserChoices_ok_guide}488 else 489 LMDZ_sedguide.def ok_guide n532 IGCM_comp_modifyDefFile nonblocker guide.def ok_guide ${lmdz_UserChoices_ok_guide} 533 else 534 IGCM_comp_modifyDefFile nonblocker guide.def ok_guide n 490 535 fi 491 536 … … 516 561 fi 517 562 563 if [ X${lmdz_UserChoices_XIOS} = Xy ] ; then 518 564 # Add include of LMDZ context in iodef.xml 519 565 # In iodef.xml add on next line after "COMPONENT CONTEXT" 520 566 # <context id="LMDZ" src="./context_lmdz.xml"/> 521 522 523 524 iodef.xml.tmp > iodef.xml525 526 527 567 echo '<context id="LMDZ" src="./context_lmdz.xml"/>' > add.tmp 568 cp iodef.xml iodef.xml.tmp 569 sed -e "/COMPONENT CONTEXT/r add.tmp" \ 570 iodef.xml.tmp > iodef.xml 571 rm iodef.xml.tmp add.tmp 572 fi 573 528 574 IGCM_debug_PopStack "ATM_Update" 529 575 } … … 638 684 if [ ${lmdz_UserChoices_CARBON_CYCLE} = historical ] ; then 639 685 # Modify co2_ppm in config.def only for historical run 640 # If not historical run, keep co2_ppm value set earlier by LMDZ_sed641 LMDZ_sedconfig.def co2_ppm ${CO2_ppm}686 # If not historical run, keep co2_ppm value set earlier by IGCM_comp_modifyDefFile 687 IGCM_comp_modifyDefFile nonblocker config.def co2_ppm ${CO2_ppm} 642 688 fi 643 689 IGCM_debug_PopStack "ATM_Carbon_Update"
Note: See TracChangeset
for help on using the changeset viewer.