Changeset 2566 for CONFIG/UNIFORM/v6_rc0/IPSLCM6/GENERAL/DRIVER
- Timestamp:
- 06/12/15 16:33:44 (10 years ago)
- Location:
- CONFIG/UNIFORM/v6_rc0/IPSLCM6/GENERAL/DRIVER
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
CONFIG/UNIFORM/v6_rc0/IPSLCM6/GENERAL/DRIVER/lmdz.driver
r2512 r2566 325 325 fi 326 326 327 328 ## output.def parameters329 # columns in phys_output_filekeys refer to the filenames given in phys_out_filenames in output.def :330 # histmth histday histhf histhf3h histhf3hm histstn331 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 definition340 if [ X${lmdz_UserChoices_XIOS} = Xy ] ; then341 327 # Default init : files are desactivated 342 343 344 345 #IGCM_comp_modifyXmlFile force file_def_histhf3h_lmdz.xml histhf3h enabled .FALSE.346 #IGCM_comp_modifyXmlFile force file_def_histhf3hm_lmdz.xml histhf3hm enabled .FALSE.347 348 349 350 351 352 353 328 IGCM_comp_modifyXmlFile force file_def_histmth_lmdz.xml histmth enabled .FALSE. 329 IGCM_comp_modifyXmlFile force file_def_histday_lmdz.xml histday enabled .FALSE. 330 IGCM_comp_modifyXmlFile force file_def_histhf_lmdz.xml histhf enabled .FALSE. 331 #IGCM_comp_modifyXmlFile force file_def_histhf3h_lmdz.xml histhf3h enabled .FALSE. 332 #IGCM_comp_modifyXmlFile force file_def_histhf3hm_lmdz.xml histhf3hm enabled .FALSE. 333 IGCM_comp_modifyXmlFile force file_def_histstn_lmdz.xml histstn enabled .FALSE. 334 IGCM_comp_modifyXmlFile force file_def_histmthNMC_lmdz.xml histmthNMC enabled .FALSE. 335 IGCM_comp_modifyXmlFile force file_def_histdayNMC_lmdz.xml histdayNMC enabled .FALSE. 336 IGCM_comp_modifyXmlFile force file_def_histhfNMC_lmdz.xml histhfNMC enabled .FALSE. 337 IGCM_comp_modifyXmlFile force file_def_histmthCOSP_lmdz.xml histmthCOSP enabled .FALSE. 338 IGCM_comp_modifyXmlFile force file_def_histdayCOSP_lmdz.xml histdayCOSP enabled .FALSE. 339 IGCM_comp_modifyXmlFile force file_def_histhfCOSP_lmdz.xml histhfCOSP enabled .FALSE. 354 340 355 341 # Default output level : 5 356 IGCM_comp_modifyXmlFile force file_def_histmth_lmdz.xml histmth output_level 5 357 IGCM_comp_modifyXmlFile force file_def_histday_lmdz.xml histday output_level 5 358 IGCM_comp_modifyXmlFile force file_def_histhf_lmdz.xml histhf output_level 5 359 # IGCM_comp_modifyXmlFile force file_def_histhf3h_lmdz.xml histhf3h output_level 5 360 # IGCM_comp_modifyXmlFile force file_def_histhf3hm_lmdz.xml histhf3hm output_level 5 361 IGCM_comp_modifyXmlFile force file_def_histstn_lmdz.xml histstn output_level 5 362 IGCM_comp_modifyXmlFile force file_def_histmthNMC_lmdz.xml histmthNMC output_level 5 363 IGCM_comp_modifyXmlFile force file_def_histdayNMC_lmdz.xml histdayNMC output_level 5 364 IGCM_comp_modifyXmlFile force file_def_histhfNMC_lmdz.xml histhfNMC output_level 5 365 IGCM_comp_modifyXmlFile force file_def_histmthCOSP_lmdz.xml histmthCOSP output_level 5 366 IGCM_comp_modifyXmlFile force file_def_histdayCOSP_lmdz.xml histdayCOSP output_level 5 367 IGCM_comp_modifyXmlFile force file_def_histhfCOSP_lmdz.xml histhfCOSP output_level 5 368 # Filling of XML files 369 if [ X${ok_mensuel} = Xy ] ; then 370 IGCM_comp_modifyXmlFile force file_def_histmth_lmdz.xml histmth enabled .TRUE. 371 IGCM_comp_modifyXmlFile force file_def_histmth_lmdz.xml histmth output_freq 1mo 372 IGCM_comp_modifyXmlFile force file_def_histmth_lmdz.xml histmth name histmth 373 fi 374 if [ X${ok_journe} = Xy ] ; then 375 IGCM_comp_modifyXmlFile force file_def_histday_lmdz.xml histday enabled .TRUE. 376 IGCM_comp_modifyXmlFile force file_def_histday_lmdz.xml histday output_freq 1d 377 IGCM_comp_modifyXmlFile force file_def_histday_lmdz.xml histday name histday 378 if [ X${OutLevel} = Xlow ] || [ X${OutLevel} = Xmedium ] ; then 379 IGCM_comp_modifyXmlFile force file_def_histday_lmdz.xml histday output_level 2 380 fi 381 fi 382 if [ X${ok_hf} = Xy ] ; then 383 IGCM_comp_modifyXmlFile force file_def_histhf_lmdz.xml histhf enabled .TRUE. 384 IGCM_comp_modifyXmlFile force file_def_histhf_lmdz.xml histhf output_freq 6h 385 IGCM_comp_modifyXmlFile force file_def_histhf_lmdz.xml histhf name histhf 386 if [ X${OutLevel} = Xlow ] ; then 387 IGCM_comp_modifyXmlFile force file_def_histhf_lmdz.xml histhf output_level 2 388 fi 389 fi 390 # if [ X${ok_hf3h} = Xy ] ; then 391 # IGCM_comp_modifyXmlFile force file_def_histhf3h_lmdz.xml histhf3h enabled .TRUE. 392 # IGCM_comp_modifyXmlFile force file_def_histhf3h_lmdz.xml histhf3h output_freq 3h 393 # IGCM_comp_modifyXmlFile force file_def_histhf3h_lmdz.xml histhf3h name histhf3h 394 # fi 395 # if [ X${ok_hf3hm} = Xy ] ; then 396 # IGCM_comp_modifyXmlFile force file_def_histhf3hm_lmdz.xml histhf3hm enabled .TRUE. 397 # IGCM_comp_modifyXmlFile force file_def_histhf3hm_lmdz.xml histhf3hm output_freq 3h 398 # IGCM_comp_modifyXmlFile force file_def_histhf3hm_lmdz.xml histhf3hm name histhf3hm 399 # fi 400 if [ X${ok_stn} = Xy ] ; then 401 IGCM_comp_modifyXmlFile force file_def_histstn_lmdz.xml histstn enabled .TRUE. 402 IGCM_comp_modifyXmlFile force file_def_histstn_lmdz.xml histstn output_freq 1800s 403 IGCM_comp_modifyXmlFile force file_def_histstn_lmdz.xml histstn name histstn 404 fi 405 if [ X${LMDZ_NMC_monthly} = Xy ] ; then 406 IGCM_comp_modifyXmlFile force file_def_histmthNMC_lmdz.xml histmthNMC enabled .TRUE. 407 IGCM_comp_modifyXmlFile force file_def_histmthNMC_lmdz.xml histmthNMC output_freq 1mo 408 IGCM_comp_modifyXmlFile force file_def_histmthNMC_lmdz.xml histmthNMC name histmthNMC 409 fi 410 if [ X${LMDZ_NMC_daily} = Xy ] ; then 411 IGCM_comp_modifyXmlFile force file_def_histdayNMC_lmdz.xml histdayNMC enabled .TRUE. 412 IGCM_comp_modifyXmlFile force file_def_histdayNMC_lmdz.xml histdayNMC output_freq 1d 413 IGCM_comp_modifyXmlFile force file_def_histdayNMC_lmdz.xml histdayNMC name histdayNMC 414 fi 415 if [ X${LMDZ_NMC_hf} = Xy ] ; then 416 IGCM_comp_modifyXmlFile force file_def_histhfNMC_lmdz.xml histhfNMC enabled .TRUE. 417 IGCM_comp_modifyXmlFile force file_def_histhfNMC_lmdz.xml histhfNMC output_freq 6h 418 IGCM_comp_modifyXmlFile force file_def_histhfNMC_lmdz.xml histhfNMC name histhfNMC 419 fi 420 421 if [ X${LMDZ_COSP_OK} = Xy ] ; then 422 if [ X${LMDZ_COSP_monthly} = Xy ] ; then 423 IGCM_comp_modifyXmlFile force file_def_histmthCOSP_lmdz.xml histmthCOSP enabled .TRUE. 424 IGCM_comp_modifyXmlFile force file_def_histmthCOSP_lmdz.xml histmthCOSP output_freq 1mo 425 IGCM_comp_modifyXmlFile force file_def_histmthCOSP_lmdz.xml histmthCOSP name histmthCOSP 426 fi 427 if [ X${LMDZ_COSP_daily} = Xy ] ; then 428 IGCM_comp_modifyXmlFile force file_def_histdayCOSP_lmdz.xml histdayCOSP enabled .TRUE. 429 IGCM_comp_modifyXmlFile force file_def_histdayCOSP_lmdz.xml histdayCOSP output_freq 1d 430 IGCM_comp_modifyXmlFile force file_def_histdayCOSP_lmdz.xml histdayCOSP name histdayCOSP 431 fi 432 if [ X${LMDZ_COSP_hf} = Xy ] ; then 433 IGCM_comp_modifyXmlFile force file_def_histhfCOSP_lmdz.xml histhfCOSP enabled .TRUE. 434 IGCM_comp_modifyXmlFile force file_def_histhfCOSP_lmdz.xml histhfCOSP output_freq 6h 435 IGCM_comp_modifyXmlFile force file_def_histhfCOSP_lmdz.xml histhfCOSP name histhfCOSP 436 fi 437 fi 438 342 IGCM_comp_modifyXmlFile force file_def_histmth_lmdz.xml histmth output_level 5 343 IGCM_comp_modifyXmlFile force file_def_histday_lmdz.xml histday output_level 5 344 IGCM_comp_modifyXmlFile force file_def_histhf_lmdz.xml histhf output_level 5 345 #IGCM_comp_modifyXmlFile force file_def_histhf3h_lmdz.xml histhf3h output_level 5 346 #IGCM_comp_modifyXmlFile force file_def_histhf3hm_lmdz.xml histhf3hm output_level 5 347 IGCM_comp_modifyXmlFile force file_def_histstn_lmdz.xml histstn output_level 5 348 IGCM_comp_modifyXmlFile force file_def_histmthNMC_lmdz.xml histmthNMC output_level 5 349 IGCM_comp_modifyXmlFile force file_def_histdayNMC_lmdz.xml histdayNMC output_level 5 350 IGCM_comp_modifyXmlFile force file_def_histhfNMC_lmdz.xml histhfNMC output_level 5 351 IGCM_comp_modifyXmlFile force file_def_histmthCOSP_lmdz.xml histmthCOSP output_level 5 352 IGCM_comp_modifyXmlFile force file_def_histdayCOSP_lmdz.xml histdayCOSP output_level 5 353 IGCM_comp_modifyXmlFile force file_def_histhfCOSP_lmdz.xml histhfCOSP output_level 5 354 355 # FILLING XIOS XMLs 356 if [ X${ok_mensuel} = Xy ] ; then 357 IGCM_comp_modifyXmlFile force file_def_histmth_lmdz.xml histmth enabled .TRUE. 358 IGCM_comp_modifyXmlFile force file_def_histmth_lmdz.xml histmth output_freq 1mo 359 IGCM_comp_modifyXmlFile force file_def_histmth_lmdz.xml histmth name histmth 360 fi 361 if [ X${ok_journe} = Xy ] ; then 362 IGCM_comp_modifyXmlFile force file_def_histday_lmdz.xml histday enabled .TRUE. 363 IGCM_comp_modifyXmlFile force file_def_histday_lmdz.xml histday output_freq 1d 364 IGCM_comp_modifyXmlFile force file_def_histday_lmdz.xml histday name histday 365 if [ X${OutLevel} = Xlow ] || [ X${OutLevel} = Xmedium ] ; then 366 IGCM_comp_modifyXmlFile force file_def_histday_lmdz.xml histday output_level 2 367 fi 368 fi 369 if [ X${ok_hf} = Xy ] ; then 370 IGCM_comp_modifyXmlFile force file_def_histhf_lmdz.xml histhf enabled .TRUE. 371 IGCM_comp_modifyXmlFile force file_def_histhf_lmdz.xml histhf output_freq 6h 372 IGCM_comp_modifyXmlFile force file_def_histhf_lmdz.xml histhf name histhf 373 if [ X${OutLevel} = Xlow ] ; then 374 IGCM_comp_modifyXmlFile force file_def_histhf_lmdz.xml histhf output_level 5 375 elif [ X${OutLevel} = Xmedium ] ; then 376 IGCM_comp_modifyXmlFile force file_def_histhf_lmdz.xml histhf output_level 6 377 elif [ X${OutLevel} = Xhigh ] ; then 378 IGCM_comp_modifyXmlFile force file_def_histhf_lmdz.xml histhf output_level 7 379 fi 380 fi 381 if [ X${ok_hf3h} = Xy ] ; then 382 IGCM_comp_modifyXmlFile force file_def_histhf3h_lmdz.xml histhf3h enabled .TRUE. 383 IGCM_comp_modifyXmlFile force file_def_histhf3h_lmdz.xml histhf3h output_freq 3h 384 IGCM_comp_modifyXmlFile force file_def_histhf3h_lmdz.xml histhf3h name histhf3h 385 fi 386 if [ X${ok_hf3hm} = Xy ] ; then 387 IGCM_comp_modifyXmlFile force file_def_histhf3hm_lmdz.xml histhf3hm enabled .TRUE. 388 IGCM_comp_modifyXmlFile force file_def_histhf3hm_lmdz.xml histhf3hm output_freq 3h 389 IGCM_comp_modifyXmlFile force file_def_histhf3hm_lmdz.xml histhf3hm name histhf3hm 390 fi 391 if [ X${ok_stn} = Xy ] ; then 392 IGCM_comp_modifyXmlFile force file_def_histstn_lmdz.xml histstn enabled .TRUE. 393 IGCM_comp_modifyXmlFile force file_def_histstn_lmdz.xml histstn output_freq 1800s 394 IGCM_comp_modifyXmlFile force file_def_histstn_lmdz.xml histstn name histstn 395 fi 396 if [ X${LMDZ_NMC_monthly} = Xy ] ; then 397 IGCM_comp_modifyXmlFile force file_def_histmthNMC_lmdz.xml histmthNMC enabled .TRUE. 398 IGCM_comp_modifyXmlFile force file_def_histmthNMC_lmdz.xml histmthNMC output_freq 1mo 399 IGCM_comp_modifyXmlFile force file_def_histmthNMC_lmdz.xml histmthNMC name histmthNMC 400 fi 401 if [ X${LMDZ_NMC_daily} = Xy ] ; then 402 IGCM_comp_modifyXmlFile force file_def_histdayNMC_lmdz.xml histdayNMC enabled .TRUE. 403 IGCM_comp_modifyXmlFile force file_def_histdayNMC_lmdz.xml histdayNMC output_freq 1d 404 IGCM_comp_modifyXmlFile force file_def_histdayNMC_lmdz.xml histdayNMC name histdayNMC 405 fi 406 if [ X${LMDZ_NMC_hf} = Xy ] ; then 407 IGCM_comp_modifyXmlFile force file_def_histhfNMC_lmdz.xml histhfNMC enabled .TRUE. 408 IGCM_comp_modifyXmlFile force file_def_histhfNMC_lmdz.xml histhfNMC output_freq 6h 409 IGCM_comp_modifyXmlFile force file_def_histhfNMC_lmdz.xml histhfNMC name histhfNMC 410 fi 411 if [ X${LMDZ_COSP_OK} = Xy ] ; then 412 if [ X${LMDZ_COSP_monthly} = Xy ] ; then 413 IGCM_comp_modifyXmlFile force file_def_histmthCOSP_lmdz.xml histmthCOSP enabled .TRUE. 414 IGCM_comp_modifyXmlFile force file_def_histmthCOSP_lmdz.xml histmthCOSP output_freq 1mo 415 IGCM_comp_modifyXmlFile force file_def_histmthCOSP_lmdz.xml histmthCOSP name histmthCOSP 416 fi 417 if [ X${LMDZ_COSP_daily} = Xy ] ; then 418 IGCM_comp_modifyXmlFile force file_def_histdayCOSP_lmdz.xml histdayCOSP enabled .TRUE. 419 IGCM_comp_modifyXmlFile force file_def_histdayCOSP_lmdz.xml histdayCOSP output_freq 1d 420 IGCM_comp_modifyXmlFile force file_def_histdayCOSP_lmdz.xml histdayCOSP name histdayCOSP 421 fi 422 if [ X${LMDZ_COSP_hf} = Xy ] ; then 423 IGCM_comp_modifyXmlFile force file_def_histhfCOSP_lmdz.xml histhfCOSP enabled .TRUE. 424 IGCM_comp_modifyXmlFile force file_def_histhfCOSP_lmdz.xml histhfCOSP output_freq 6h 425 IGCM_comp_modifyXmlFile force file_def_histhfCOSP_lmdz.xml histhfCOSP name histhfCOSP 426 fi 439 427 fi 440 428 … … 481 469 482 470 ## run.def parameters 483 IGCM_comp_modifyDefFile blocker run.def dayref ${InitDay}484 IGCM_comp_modifyDefFile blocker run.def nday ${PeriodLengthInDays}485 IGCM_comp_modifyDefFile blocker run.def raz_date ${RAZ_DATE}486 IGCM_comp_modifyDefFile blocker run.def periodav ${LMDZ_periodav}487 IGCM_comp_modifyDefFile nonblocker run.def adjust 471 IGCM_comp_modifyDefFile blocker run.def dayref ${InitDay} 472 IGCM_comp_modifyDefFile blocker run.def nday ${PeriodLengthInDays} 473 IGCM_comp_modifyDefFile blocker run.def raz_date ${RAZ_DATE} 474 IGCM_comp_modifyDefFile blocker run.def periodav ${LMDZ_periodav} 475 IGCM_comp_modifyDefFile nonblocker run.def adjust ${LMDZ_adjust} 488 476 489 477 # Set anneeref different for gcm and ce0l … … 622 610 fi 623 611 624 if [ X${lmdz_UserChoices_XIOS} = Xy ] ; then625 612 # Add include of LMDZ context in iodef.xml 626 613 # In iodef.xml add on next line after "COMPONENT CONTEXT" 627 614 # <context id="LMDZ" src="./context_lmdz.xml"/> 628 echo '<context id="LMDZ" src="./context_lmdz.xml"/>' > add.tmp 629 cp iodef.xml iodef.xml.tmp 630 sed -e "/COMPONENT CONTEXT/r add.tmp" \ 631 iodef.xml.tmp > iodef.xml 632 rm iodef.xml.tmp add.tmp 633 634 # Set ok_all_xml=y in run.def 635 IGCM_comp_modifyDefFile nonblocker run.def ok_all_xml y 636 else 637 # Deactivate ok_all_xml in run.def 638 IGCM_comp_modifyDefFile nonblocker run.def ok_all_xml n 639 fi 615 echo '<context id="LMDZ" src="./context_lmdz.xml"/>' > add.tmp 616 cp iodef.xml iodef.xml.tmp 617 sed -e "/COMPONENT CONTEXT/r add.tmp" iodef.xml.tmp > iodef.xml 618 rm iodef.xml.tmp add.tmp 640 619 641 620 IGCM_debug_PopStack "ATM_Update" -
CONFIG/UNIFORM/v6_rc0/IPSLCM6/GENERAL/DRIVER/opa9.driver
r2384 r2566 9 9 RESOL_OCE_ICE=$( echo ${RESOL} | awk "-Fx" '{print $1}' ) 10 10 case ${RESOL_OCE_ICE} in 11 12 SEAICE_MODEL=LIM2 13 14 15 16 17 18 19 20 21 11 ( *LIM2* ) 12 SEAICE_MODEL=LIM2 13 LIM_VERSION=2 14 ;; 15 16 ( *LIM3* ) 17 SEAICE_MODEL=LIM3 18 LIM_VERSION=3 19 ;; 20 ( *CICE*) SEAICE_MODEL=CICE ;; 21 ( * ) SEAICE_MODEL=UNKNOWN ;; 22 22 esac 23 23 RESOL_OCE=$( echo ${RESOL_OCE_ICE} | sed "s/${SEAICE_MODEL}//" ) … … 31 31 # Local function to find namelists parameters 32 32 supergrep () { 33 33 grep "^ *$1 *=" $2 | sed -e "s% *\!.*%%" 34 34 } 35 35 … … 56 56 IGCM_debug_Print 1 "namelist_ref : ${NAMELIST_OPA_REF}" 57 57 if [ ! -r ${NAMELIST_OPA_REF} ] ; then 58 58 echo "${NAMELIST_OPA_REF} non trouve" 59 59 fi 60 60 IGCM_debug_Print 1 "namelist_cfg : ${NAMELIST_OPA_CFG}" 61 61 if [ ! -r ${NAMELIST_OPA_CFG} ] ; then 62 62 echo "${NAMELIST_OPA_CFG} non trouve" 63 63 fi 64 64 … … 69 69 PAT_NLEAPY=$( supergrep nn_leapy ${NAMELIST_OPA_CFG} ) 70 70 PAT_NSTOCK=$( supergrep nn_stock ${NAMELIST_OPA_CFG} ) 71 PAT_NWRITE=$( supergrep nn_write ${NAMELIST_OPA_CFG} )72 71 PAT_RESTAR=$( supergrep ln_rstart ${NAMELIST_OPA_CFG} ) 73 72 PAT_NRSTAR=$( supergrep nn_rstctl ${NAMELIST_OPA_CFG} ) 74 73 PAT_NMSH=$( supergrep nn_msh ${NAMELIST_OPA_CFG} ) 75 PAT_NN_WRITE=$( supergrep nn_write ${NAMELIST_OPA_CFG} )76 PAT_NN_FWRI=$( supergrep nn_fwri ${NAMELIST_OPA_CFG} )77 74 PAT_ICE_EMBD=$( supergrep nn_ice_embd ${NAMELIST_OPA_CFG} ) 78 75 PAT_ICEFLX=$( supergrep cn_iceflx ${NAMELIST_OPA_CFG} ) … … 80 77 PAT_JPNJ=$( supergrep jpnj ${NAMELIST_OPA_CFG} ) 81 78 PAT_JPNIJ=$( supergrep jpnij ${NAMELIST_OPA_CFG} ) 82 PAT_NN_FSBC=$( supergrep nn_fsbc ${NAMELIST_OPA_CFG} ) 79 PAT_NN_FSBC=$( supergrep nn_fsbc ${NAMELIST_OPA_CFG} ) 83 80 84 81 ORCA_RDT=$( supergrep rn_rdt ${NAMELIST_OPA_CFG} | sed 's/ *rn_rdt *=//' | sed 's/\. *//' ) … … 87 84 #(( ORCA_NPDT_SBC = ORCA_NPDT_JOUR / ORCA_NN_FSBC )) 88 85 (( ORCA_RDT_SBC = ORCA_RDT * ORCA_NN_FSBC )) 89 86 90 87 91 88 # Period Length In Days between DateBegin and first day of calendar 0001 01 01 … … 99 96 IGCM_debug_Print 1 "PAT_NLEAPY $PAT_NLEAPY" 100 97 IGCM_debug_Print 1 "PAT_NSTOCK $PAT_NSTOCK" 101 IGCM_debug_Print 1 "PAT_NWRITE $PAT_NWRITE"102 98 IGCM_debug_Print 1 "PAT_RESTAR $PAT_RESTAR" 103 99 IGCM_debug_Print 1 "PAT_NRSTAR $PAT_NRSTAR" 104 100 IGCM_debug_Print 1 "PAT_NMSH $PAT_NMSH" 105 IGCM_debug_Print 1 "PAT_NN_WRITE $PAT_NN_WRITE"106 IGCM_debug_Print 1 "PAT_NN_FWRI $PAT_NN_FWRI"107 101 IGCM_debug_Print 1 "PAT_ICE_EMBD $PAT_ICE_EMBD" 108 102 IGCM_debug_Print 1 "PAT_ICEFLX $PAT_ICEFLX" … … 117 111 IGCM_debug_Print 1 "ORCA_NPDT_JOUR $ORCA_NPDT_JOUR" 118 112 IGCM_debug_Print 1 "DaysSinceJC $DaysSinceJC" 119 113 120 114 IGCM_debug_PopStack "OCE_Initialize" 121 115 122 116 } 123 117 … … 133 127 ## This informations are used for diaptr, trends and diagap files 134 128 ## only the first frequency is used for this files 135 129 136 130 IGCM_debug_Print 1 "FreqCoupling $FreqCoupling" 137 131 IGCM_debug_Print 1 "ORCA_NN_FSBC $ORCA_NN_FSBC" … … 140 134 141 135 if [[ ${ORCA_RDT_SBC} -gt ${FreqCoupling} ]] ; then 142 IGCM_debug_Exit "ORCA_RDT_SBC=${ORCA_RDT_SBC} is greater than FreqCoupling=${FreqCoupling}" 143 IGCM_debug_Verif_Exit 144 fi 145 146 ##--Write Frequency Purpose .... 147 frequency=$( echo ${config_OCE_WriteFrequency} | awk "-F " '{print $1}' ) 148 factor=$( echo ${frequency} | sed -e "s/[yYmMdD]//" ) 149 case ${frequency} in 150 1Y|1y) 151 (( ORCA_NWRITE = ORCA_NPDT_JOUR * factor * $( IGCM_date_DaysInYear ${year} ) )) ; 152 PREFIX_NWRITE=${config_UserChoices_JobName}_${factor}y ; 153 R_OUT_OCE_NWRITE=${R_OUT_OCE_O_Y} ; 154 WF1=${factor}Y ;; 155 1M|1m) 156 (( ORCA_NWRITE = ORCA_NPDT_JOUR * factor * $( IGCM_date_DaysInMonth ${year} ${month} ) )) ; 157 PREFIX_NWRITE=${config_UserChoices_JobName}_${factor}m ; 158 R_OUT_OCE_NWRITE=${R_OUT_OCE_O_M} ; 159 WF1=${factor}M ;; 160 *D|*d) 161 (( ORCA_NWRITE = ORCA_NPDT_JOUR * factor )) ; 162 PREFIX_NWRITE=${config_UserChoices_JobName}_${factor}d ; 163 R_OUT_OCE_NWRITE=${R_OUT_OCE_O_D} ; 164 WF1=${factor}D ;; 165 *) 166 (( ORCA_NWRITE = 0 )) ;; 167 esac 136 IGCM_debug_Exit "ORCA_RDT_SBC=${ORCA_RDT_SBC} is greater than FreqCoupling=${FreqCoupling}" 137 IGCM_debug_Verif_Exit 138 fi 168 139 169 140 ##--Write Frequency for iomput … … 188 159 189 160 ##-- Output level : 3 for more 1D variables 190 eval opa9_OUTPUT_LEVEL=\${opa9_UserChoices_OUTPUT_LEVEL} > /dev/null 2>&1 191 OUTPUT_LEVEL=${opa9_OUTPUT_LEVEL} 192 161 OUTPUT_LEVEL=${opa9_UserChoices_OUTPUT_LEVEL} 193 162 194 163 # Period Length In Days between DateBegin and first day of calendar 0001 01 01 195 # Needed by OPA namelist to compute correct file names 164 # Needed by OPA namelist to compute correct file names 196 165 (( PeriodDaysSinceJC = $( IGCM_date_DaysSinceJC ${PeriodDateBegin} ) + 1 )) 197 166 … … 206 175 ##-- Restart configuration 207 176 if ( [ "${CumulPeriod}" -eq 1 ] && [ "${config_OCE_Restart}" = "n" ] ) ; then 208 209 177 ORCA_LRSTAR=.FALSE. 178 ORCA_NRSTDT=0 210 179 # Put ORCA_NMSH=0 when OPA running in parallel mode 211 212 180 ORCA_NMSH=1 181 #echo "NO OPA RESTART" 213 182 elif ( [ "${CumulPeriod}" -eq 1 ] && [ "${config_OCE_Restart}" = "y" ] ) ; then 214 215 216 217 183 ORCA_LRSTAR=.TRUE. 184 ORCA_NRSTDT=0 185 ORCA_NMSH=1 186 #echo "OPA RESTART" 218 187 else 219 220 221 222 188 ORCA_LRSTAR=.TRUE. 189 ORCA_NRSTDT=2 190 ORCA_NMSH=0 191 #echo "OPA RESTART" 223 192 fi 224 193 … … 244 213 245 214 typeset -r PRECIS=8 246 NEMO_END=$( echo $( awk "BEGIN { printf \"%0${PRECIS}d\",${ORCA_NITEND} }" ) ) 215 NEMO_END=$( echo $( awk "BEGIN { printf \"%0${PRECIS}d\",${ORCA_NITEND} }" ) ) 247 216 248 217 249 218 case ${SEAICE_MODEL} in 250 ( LIM2 ) 251 252 253 254 ( LIM3 ) 255 256 257 219 ( LIM2 ) 220 NN_ICE_EMBD=0 221 ICEFLX=none 222 ;; 223 ( LIM3 ) 224 NN_ICE_EMBD=2 225 ICEFLX=${opa9_UserChoices_iceflx:-linear} 226 ;; 258 227 esac 259 228 … … 261 230 262 231 sed -e "s/${PAT_CEXPER}/ cn_exp=\"${config_UserChoices_JobName}\"/" \ 263 264 265 232 -e "s/${PAT_NIT000}/ nn_it000=${ORCA_NIT000}/" \ 233 -e "s/${PAT_NITEND}/ nn_itend=${ORCA_NITEND}/" \ 234 -e "s/${PAT_NDATE0}/ nn_date0=${PeriodDateBegin}/" \ 266 235 -e "s%${PAT_NLEAPY}% nn_leapy=${ORCA_NLEAPY}%" \ 267 -e "s/${PAT_NSTOCK}/ nn_stock=${ORCA_NSTOCK}/" \ 268 -e "s/${PAT_NWRITE}/ nn_write=${ORCA_NWRITE}/" \ 269 -e "s/${PAT_RESTAR}/ ln_rstart=${ORCA_LRSTAR}/" \ 270 -e "s/${PAT_NRSTAR}/ nn_rstctl=${ORCA_NRSTDT}/" \ 271 -e "s/${PAT_NMSH}/ nn_msh=${ORCA_NMSH}/" \ 272 -e "s/${PAT_NN_WRITE}/ nn_prg=${ORCA_NWRITE}/" \ 273 -e "s/${PAT_NN_FWRI}/ nn_fwri=${ORCA_NWRITE}/" \ 274 -e "s/${PAT_NN_FSBC}/ nn_fsbc=${ORCA_NN_FSBC}/" \ 275 -e "s/${PAT_ICE_EMBD}/ nn_ice_embd=${NN_ICE_EMBD}/" \ 276 -e "s/${PAT_ICEFLX}/ cn_iceflx=\'${ICEFLX}'/" \ 277 -e "s/${PAT_JPNI}/ jpni=1/" \ 278 -e "s/${PAT_JPNJ}/ jpnj=${NUM_PROC_OCE}/" \ 279 -e "s/${PAT_JPNIJ}/ jpnij=${NUM_PROC_OCE}/" \ 280 namelist_cfg > namelist_cfg.tmp 236 -e "s/${PAT_NSTOCK}/ nn_stock=${ORCA_NSTOCK}/" \ 237 -e "s/${PAT_RESTAR}/ ln_rstart=${ORCA_LRSTAR}/" \ 238 -e "s/${PAT_NRSTAR}/ nn_rstctl=${ORCA_NRSTDT}/" \ 239 -e "s/${PAT_NMSH}/ nn_msh=${ORCA_NMSH}/" \ 240 -e "s/${PAT_NN_FSBC}/ nn_fsbc=${ORCA_NN_FSBC}/" \ 241 -e "s/${PAT_ICE_EMBD}/ nn_ice_embd=${NN_ICE_EMBD}/" \ 242 -e "s/${PAT_ICEFLX}/ cn_iceflx=\'${ICEFLX}'/" \ 243 -e "s/${PAT_JPNI}/ jpni=1/" \ 244 -e "s/${PAT_JPNJ}/ jpnj=${NUM_PROC_OCE}/" \ 245 -e "s/${PAT_JPNIJ}/ jpnij=${NUM_PROC_OCE}/" \ 246 namelist_cfg > namelist_cfg.tmp 281 247 282 248 IGCM_sys_Mv namelist_cfg.tmp namelist_cfg … … 293 259 -e "s/_1M_ENABLE_/${V1M_ENABLE}/" \ 294 260 -e "s/_1Y_ENABLE_/${V1Y_ENABLE}/" \ 295 -e "s/_OUTPUT_LEVEL_/${OUTPUT_LEVEL}/" \296 261 context_nemo.xml > context_nemo.xml.tmp 297 262 … … 310 275 echo '<context id="nemo" src="./context_nemo.xml"/>' > add.tmp 311 276 cp iodef.xml iodef.xml.tmp 312 sed -e "/COMPONENT CONTEXT/r add.tmp" \ 313 iodef.xml.tmp > iodef.xml 277 sed -e "/COMPONENT CONTEXT/r add.tmp" iodef.xml.tmp > iodef.xml 314 278 rm iodef.xml.tmp add.tmp 315 316 279 317 280 IGCM_debug_PopStack "OCE_Update" … … 325 288 if [ -f date.file ] ; then 326 289 # Prefix use in opa9.card AND in lim2.card : 327 328 329 330 290 DATE_OPA=$( cat date.file | \ 291 sed "s/\ ${config_UserChoices_JobName}_[0-9]*[a-z]_\([0-9]*_[0-9]*\)_\ */\1/g" ) 292 MainPrefix=${config_UserChoices_JobName}_1d_${DATE_OPA} 293 SecondPrefix=${config_UserChoices_JobName}_1m_${DATE_OPA} 331 294 fi 332 295 -
CONFIG/UNIFORM/v6_rc0/IPSLCM6/GENERAL/DRIVER/orchidee.driver
r2410 r2566 15 15 16 16 ##- Define variable DefSuffix set in orchidee.card 17 ## This variable is used in orchidee.card to choose 18 ## parameter file(orchidee.def_DefSuffix). 17 ## This variable is used in orchidee.card to choose 18 ## parameter file(orchidee.def_DefSuffix). 19 19 if [ ! X${orchidee_UserChoices_DefSuffix} = X ] ; then 20 20 DefSuffix=${orchidee_UserChoices_DefSuffix} 21 21 else 22 22 DefSuffix=Choi 23 23 fi 24 24 … … 33 33 # Activate STOMATE if the compontent SBG=stomate is set in config.card 34 34 if [ X${config_ListOfComponents_SBG} = Xstomate ] ; then 35 35 IGCM_comp_modifyDefFile blocker orchidee.def STOMATE_OK_STOMATE y 36 36 else 37 37 IGCM_comp_modifyDefFile blocker orchidee.def STOMATE_OK_STOMATE n 38 38 fi 39 39 40 typeset SECHIBA_WRITE_STEP 40 # Default init : files are desactivated 41 IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 enabled .FALSE. 42 IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba2 enabled .FALSE. 41 43 42 if [ X${orchidee_UserChoices_XIOS} = Xy ] ; then 43 IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 enabled .FALSE. 44 IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba2 enabled .FALSE. 45 IGCM_comp_modifyDefFile nonblocker orchidee.def XIOS_ORCHIDEE_OK y 46 else 47 IGCM_comp_modifyDefFile nonblocker orchidee.def XIOS_ORCHIDEE_OK n 48 fi 49 50 SRF_WriteFrequency=$( echo ${config_SRF_WriteFrequency} | sed -e 's/\([0-9]*[yYmMdDs]\).*/\1/' ) 44 SRF_WriteFrequency=$( echo ${config_SRF_WriteFrequency} | sed -e 's/\([0-9]*[yYmMdDs]\).*/\1/' ) 51 45 case ${SRF_WriteFrequency} in 52 *Y|*y) 53 WriteInYears=$( echo ${SRF_WriteFrequency} | awk -F '[yY]' '{print $1}' ) 54 PeriodLengthInYears=$( echo ${config_UserChoices_PeriodLength} | awk -F '[yY]' '{print $1}' ) 55 (( SECHIBA_WRITE_STEP = PeriodLengthInDays * WriteInYears / PeriodLengthInYears * 86400 )) 56 if [ X${orchidee_UserChoices_XIOS} = Xy ] ; then 57 IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 enabled .TRUE. 58 IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 output_freq ${WriteInYears}y 59 IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 name sechiba_history 60 fi 61 ;; 62 1M) 63 if [ X${orchidee_UserChoices_XIOS} = Xy ] ; then 64 IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 enabled .TRUE. 65 IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 output_freq 1mo 66 IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 name sechiba_history 67 fi 68 case ${config_UserChoices_PeriodLength} in 69 *Y|*y) 70 SECHIBA_WRITE_STEP=-1. 71 ;; 72 *M|*m) 73 SECHIBA_WRITE_STEP=-1. 74 ;; 75 *) 76 (( SECHIBA_WRITE_STEP = $( IGCM_date_DaysInMonth $year $month ) * 86400 )) 77 ;; 78 esac 79 ;; 80 *M|*m) 81 WriteInMonths=$( echo ${SRF_WriteFrequency} | awk -F '[mM]' '{print $1}' ) 82 if [ X${orchidee_UserChoices_XIOS} = Xy ] ; then 83 IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 enabled .TRUE. 84 IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 output_freq ${WriteInMonths}mo 85 IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 name sechiba_history 86 fi 87 case ${config_UserChoices_PeriodLength} in 88 *Y|*y) 89 PeriodLengthInYears=$( echo ${config_UserChoices_PeriodLength} | awk -F '[yY]' '{print $1}' ) 90 (( SECHIBA_WRITE_STEP = PeriodLengthInDays * 86400 / PeriodLengthInYears / 12 )) 91 ;; 92 *M|*m) 93 PeriodLengthInMonths=$( echo ${config_UserChoices_PeriodLength} | awk -F '[mM]' '{print $1}' ) 94 (( SECHIBA_WRITE_STEP = PeriodLengthInDays * WriteInMonths * 86400 / PeriodLengthInMonths )) 95 ;; 96 *) 97 (( SECHIBA_WRITE_STEP = $( IGCM_date_DaysInMonth $year $month ) * 86400 )) 98 if [ X${orchidee_UserChoices_XIOS} = Xy ] ; then 99 IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 enabled .TRUE. 100 IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 output_freq ${SECHIBA_WRITE_STEP}s 101 IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 name sechiba_history 102 fi 103 ;; 104 esac 105 ;; 106 5D|5d) 107 if [ X${orchidee_UserChoices_XIOS} = Xy ] ; then 108 IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 enabled .TRUE. 109 IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 output_freq 5d 110 IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 name sechiba_history 111 fi 112 (( SECHIBA_WRITE_STEP = 5 * 86400 )) 113 ;; 114 1D|1d) 115 if [ X${orchidee_UserChoices_XIOS} = Xy ] ; then 116 IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 enabled .TRUE. 117 IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 output_freq 1d 118 IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 name sechiba_history 119 fi 120 (( SECHIBA_WRITE_STEP = 86400 )) 121 ;; 122 *s) 123 WriteInSeconds=$( echo ${SRF_WriteFrequency} | awk -F '[s]' '{print $1}' ) 124 if [ X${orchidee_UserChoices_XIOS} = Xy ] ; then 125 IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 enabled .TRUE. 126 IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 output_freq ${WriteInSeconds}s 127 IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 name sechiba_history 128 fi 129 (( SECHIBA_WRITE_STEP = WriteInSeconds )) ;; 130 *) 131 IGCM_debug_Exit "SRF_Update " ${SRF_WriteFrequency} " invalid WriteFrequency : choose in 1Y, 1M, 5D, 1D." 132 IGCM_debug_Verif_Exit ;; 46 *Y|*y) 47 WriteInYears=$( echo ${SRF_WriteFrequency} | awk -F '[yY]' '{print $1}' ) 48 PeriodLengthInYears=$( echo ${config_UserChoices_PeriodLength} | awk -F '[yY]' '{print $1}' ) 49 IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 enabled .TRUE. 50 IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 output_freq ${WriteInYears}y 51 IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 name sechiba_history 52 ;; 53 *M|*m) 54 WriteInMonths=$( echo ${SRF_WriteFrequency} | awk -F '[mM]' '{print $1}' ) 55 IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 enabled .TRUE. 56 IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 output_freq ${WriteInMonths}mo 57 IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 name sechiba_history 58 ;; 59 5D|5d) 60 IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 enabled .TRUE. 61 IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 output_freq 5d 62 IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 name sechiba_history 63 ;; 64 1D|1d) 65 IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 enabled .TRUE. 66 IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 output_freq 1d 67 IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 name sechiba_history 68 ;; 69 *s) 70 WriteInSeconds=$( echo ${SRF_WriteFrequency} | awk -F '[s]' '{print $1}' ) 71 IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 enabled .TRUE. 72 IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 output_freq ${WriteInSeconds}s 73 IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 name sechiba_history 74 ;; 75 *) 76 IGCM_debug_Exit "SRF_Update " ${SRF_WriteFrequency} " invalid WriteFrequency : choose in 1Y, 1M, 5D, 1D." 77 IGCM_debug_Verif_Exit ;; 133 78 esac 134 79 135 #Use of XIOS ouputs only 136 137 if [ X${orchidee_UserChoices_XIOS} = Xy ] ; then 138 (( SECHIBA_WRITE_STEP = 0 )) 80 # Outputs HF in HISTFILE2 if required. Output frequency is 3 hours by default. 81 if [ X${SRF_ok_hf} = Xy ] ; then 82 IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba2 enabled .TRUE. 83 IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba2 output_freq 10800s 84 IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba2 name sechiba_out_2 139 85 fi 140 IGCM_comp_modifyDefFile nonblocker orchidee.def WRITE_STEP ${SECHIBA_WRITE_STEP}141 IGCM_comp_modifyDefFile nonblocker orchidee.def SECHIBA_HISTLEVEL ${orchidee_UserChoices_sechiba_LEVEL}142 143 # Outputs HF in HISTFILE2 if required144 if [ X${SRF_ok_hf} = Xy ] ; then145 IGCM_comp_modifyDefFile nonblocker orchidee.def SECHIBA_HISTFILE2 y146 if [ X${orchidee_UserChoices_XIOS} = Xy ] ; then147 IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba2 enabled .TRUE.148 IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba2 output_freq 10800s149 IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba2 name sechiba_out_2150 fi151 else152 IGCM_comp_modifyDefFile nonblocker orchidee.def SECHIBA_HISTFILE2 n153 fi154 IGCM_comp_modifyDefFile nonblocker orchidee.def SECHIBA_HISTLEVEL2 1155 IGCM_comp_modifyDefFile nonblocker orchidee.def WRITE_STEP2 10800.0156 86 157 87 if ( [ ${CumulPeriod} -ne 1 ] || [ "${config_SRF_Restart}" != "n" ] ) ; then 158 88 IGCM_comp_modifyDefFile blocker orchidee.def SECHIBA_restart_in sechiba_rest_in.nc 159 89 else 160 90 IGCM_comp_modifyDefFile blocker orchidee.def SECHIBA_restart_in NONE 161 91 fi 162 92 163 # Modify in orchidee.def VEGET_UPDATE and LAND_COVER_CHANGE if they are set in orchidee.card section UserChoices93 # Modify in orchidee.def VEGET_UPDATE and LAND_COVER_CHANGE if they are set in orchidee.card section UserChoices 164 94 if [ ! X${orchidee_UserChoices_VEGET_UPDATE} = X ] ; then 165 95 IGCM_comp_modifyDefFile nonblocker orchidee.def VEGET_UPDATE ${orchidee_UserChoices_VEGET_UPDATE} 166 96 else 167 97 IGCM_comp_modifyDefFile nonblocker orchidee.def VEGET_UPDATE 0Y 168 98 fi 169 99 if [ ! X${orchidee_UserChoices_LAND_COVER_CHANGE} = X ] ; then 170 100 IGCM_comp_modifyDefFile nonblocker orchidee.def LAND_COVER_CHANGE ${orchidee_UserChoices_LAND_COVER_CHANGE} 171 101 else 172 102 IGCM_comp_modifyDefFile nonblocker orchidee.def LAND_COVER_CHANGE n 173 103 fi 174 104 … … 176 106 #IGCM_sys_Put_Out ${RUN_DIR}/run.def ${R_SAVE}/${PREFIX}_run.def 177 107 178 #Temporary way to fix bug on cimean variable179 IGCM_comp_modifyXmlFile force field_def_orchidee.xml cimean enabled .FALSE. 108 #Temporary way to fix bug on cimean variable 109 IGCM_comp_modifyXmlFile force field_def_orchidee.xml cimean enabled .FALSE. 180 110 181 if [ X${orchidee_UserChoices_XIOS} = Xy ] ; then182 111 # Add include of orchidee context in iodef.xml 183 112 # In iodef.xml add on next line after "COMPONENT CONTEXT" 184 113 # <context id="orchidee" src="./context_orchidee.xml"/> 185 echo '<context id="orchidee" src="./context_orchidee.xml"/>' > add.tmp 186 cp iodef.xml iodef.xml.tmp 187 sed -e "/COMPONENT CONTEXT/r add.tmp" \ 188 iodef.xml.tmp > iodef.xml 189 rm iodef.xml.tmp add.tmp 190 fi 114 echo '<context id="orchidee" src="./context_orchidee.xml"/>' > add.tmp 115 cp iodef.xml iodef.xml.tmp 116 sed -e "/COMPONENT CONTEXT/r add.tmp" iodef.xml.tmp > iodef.xml 117 rm iodef.xml.tmp add.tmp 191 118 192 119 IGCM_debug_PopStack "SRF_Update" -
CONFIG/UNIFORM/v6_rc0/IPSLCM6/GENERAL/DRIVER/pisces.driver
r2372 r2566 3 3 #----------------------------------- 4 4 function MBG_Initialize 5 { 5 { 6 6 IGCM_debug_PushStack "MBG_Initialize" 7 7 … … 21 21 # ln_rsttr boolean term for tracer model restart (true or false) 22 22 # nrsttr control of the time step (0, 1 or 2) 23 23 24 24 ##--Variables used by PISCES -- 25 25 26 26 NAMELIST_TOP_CFG=${SUBMIT_DIR}/PARAM/namelist_top_${RESOL_OCE}_cfg 27 27 NAMELIST_PISCES_CFG=${SUBMIT_DIR}/PARAM/namelist_pisces_${RESOL_OCE}_cfg … … 58 58 59 59 # If we start from IPSLCM5* restart files. 60 60 for file in restart_trc*.nc ; do 61 61 ncrename -v TRBDSi,TRBGSi -v TRNDSi,TRNGSi -v TRNBSi,TRNDSi -v TRBBSi,TRBDSi ${file} > /dev/null 2>&1 62 62 done 63 63 64 64 else … … 72 72 fi 73 73 74 ##-- Enable dbio output file75 DBIO_ENABLE=".FALSE."76 eval pisces_DBIO_ENABLE=\${pisces_UserChoices_DBIO_ENABLE} > /dev/null 2>&177 if [ "${pisces_DBIO_ENABLE}" = "y" ]; then78 DBIO_ENABLE=".TRUE."79 fi80 81 # update iodef.xml82 83 echo 'Informations into iodef.xml : DBIO_ENABLE'84 echo ${DBIO_ENABLE}85 86 sed -e "s/<DBIO_ENABLE>/${DBIO_ENABLE}/" \87 iodef.xml > iodef.xml.tmp88 89 IGCM_sys_Mv iodef.xml.tmp iodef.xml90 91 74 ##-- CO2 forcing : update atcco2 value in namelist_pisces_cfg 92 75 if [ "${pisces_UserChoices_CARBON_CYCLE}" = "y" ]; then 93 94 95 96 97 98 99 100 101 76 # Special case for carbon cycle 77 # Activate this case by putting CARBON_CYCLE=y in pisces.card section UserChoices 78 echo 'Update atcco2 in namelist_pisces_cfg with value from file co2.log' 79 PathCO2log=${SUBMIT_DIR} 80 PreviousLinelog=$( tail -1 ${PathCO2log}/co2.log ) 81 IPCC_PIS_CO2=$( echo "${PreviousLinelog[*]}" | gawk -F '|' '{gsub(" ",""); print $4}' ) 82 sed -e "s%${PAT_PIS_ATCCO2}% atcco2=${IPCC_PIS_CO2}%" \ 83 namelist_pisces_cfg > namelist_pisces_cfg.tmp 84 IGCM_sys_Mv namelist_pisces_cfg.tmp namelist_pisces_cfg 102 85 else 103 104 105 106 107 108 109 86 # Take same CO2 as for LMDZ, in parameter file config.def. 87 # ATM_Update is done before MBG_Update and therefor config.def file contains the correct value for CO2. 88 echo 'Update atcco2 in namelist_pisces_cfg with same value as for LMDZ' 89 LMDZ_CO2=$( lmdzgrep co2_ppm config.def ) 90 sed -e "s%${PAT_PIS_ATCCO2}% atcco2=${LMDZ_CO2}%" \ 91 namelist_pisces_cfg > namelist_pisces_cfg.tmp 92 IGCM_sys_Mv namelist_pisces_cfg.tmp namelist_pisces_cfg 110 93 fi 111 94 … … 136 119 IGCM_debug_PopStack "MBG_Finalize" 137 120 } 138 -
CONFIG/UNIFORM/v6_rc0/IPSLCM6/GENERAL/DRIVER/stomate.driver
r2343 r2566 9 9 10 10 RESOL_SBG=ALL 11 11 12 12 IGCM_debug_PopStack "SBG_Initialize" 13 13 } … … 18 18 IGCM_debug_PushStack "SBG_Update" 19 19 20 typeset STOMATE_WRITE_STEP 20 # Default init : files are desactivated 21 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 enabled .FALSE. 22 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 enabled .FALSE. 21 23 22 if [ X${orchidee_UserChoices_XIOS} = Xy ] ; then23 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 enabled .FALSE.24 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 enabled .FALSE.25 fi26 24 case ${config_SBG_WriteFrequency} in 27 *Y|*y) 28 WriteInYears=$( echo ${config_SBG_WriteFrequency} | awk -F '[yY]' '{print $1}' ) 29 PeriodLengthInYears=$( echo ${config_UserChoices_PeriodLength} | awk -F '[yY]' '{print $1}' ) 30 (( STOMATE_WRITE_STEP = PeriodLengthInDays * WriteInYears / PeriodLengthInYears )) 31 if [ X${orchidee_UserChoices_XIOS} = Xy ] ; then 32 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 enabled .TRUE. 33 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 output_freq ${WriteInYears}y 34 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 name stomate_history 35 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 enabled .TRUE. 36 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 output_freq ${WriteInYears}y 37 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 name stomate_ipcc_history 38 39 fi 40 ;; 41 1M|1m) 42 if [ X${orchidee_UserChoices_XIOS} = Xy ] ; then 43 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 enabled .TRUE. 44 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 output_freq 1mo 45 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 name stomate_history 46 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 enabled .TRUE. 47 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 output_freq 1mo 48 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 name stomate_ipcc_history 49 fi 50 case ${config_UserChoices_PeriodLength} in 51 *Y|*y) 52 STOMATE_WRITE_STEP=-1. 53 ;; 54 *M|*m) 55 STOMATE_WRITE_STEP=-1. 56 ;; 57 *) 58 (( STOMATE_WRITE_STEP = $( IGCM_date_DaysInMonth $year $month ) )) ;; 59 esac 60 ;; 61 *M|*m) 62 WriteInMonths=$( echo ${config_SBG_WriteFrequency} | awk -F '[mM]' '{print $1}' ) 63 if [ X${orchidee_UserChoices_XIOS} = Xy ] ; then 64 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 enabled .TRUE. 65 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 output_freq ${WriteInMonths}mo 66 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 name stomate_history 67 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 enabled .TRUE. 68 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 output_freq ${WriteInMonths}mo 69 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 name stomate_ipcc_history 70 fi 71 case ${config_UserChoices_PeriodLength} in 72 *Y|*y) 73 PeriodLengthInYears=$( echo ${config_UserChoices_PeriodLength} | awk -F '[yY]' '{print $1}' ) 74 (( STOMATE_WRITE_STEP = 30 )) 75 ;; 76 *M|*m) 77 PeriodLengthInMonths=$( echo ${config_UserChoices_PeriodLength} | awk -F '[mM]' '{print $1}' ) 78 (( STOMATE_WRITE_STEP = PeriodLengthInDays * WriteInMonths / PeriodLengthInMonths )) 79 ;; 80 *) 81 (( STOMATE_WRITE_STEP = $( IGCM_date_DaysInMonth $year $month ) )) 82 if [ X${orchidee_UserChoices_XIOS} = Xy ] ; then 83 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 enabled .TRUE. 84 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 output_freq ${STOMATE_WRITE_STEP}s 85 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 name stomate_history 86 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 enabled .TRUE. 87 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 output_freq ${STOMATE_WRITE_STEP}s 88 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 name stomate_ipcc_history 89 fi 90 ;; 91 esac 92 ;; 93 5D|5d) 94 (( STOMATE_WRITE_STEP = 5 )) 95 if [ X${orchidee_UserChoices_XIOS} = Xy ] ; then 96 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 enabled .TRUE. 97 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 output_freq 5d 98 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 name stomate_history 99 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 enabled .TRUE. 100 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 output_freq 5d 101 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 name stomate_ipcc_history 102 fi 103 ;; 104 1D|1d) 105 (( STOMATE_WRITE_STEP = 1 )) 106 if [ X${orchidee_UserChoices_XIOS} = Xy ] ; then 107 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 enabled .TRUE. 108 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 output_freq 1d 109 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 name stomate_history 110 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 enabled .TRUE. 111 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 output_freq 1d 112 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 name stomate_ipcc_history 113 fi 114 ;; 115 *s) 116 WriteInSeconds=$( echo ${config_SBG_WriteFrequency} | awk -F '[s]' '{print $1}' ) 117 if [ X${orchidee_UserChoices_XIOS} = Xy ] ; then 118 IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 enabled .TRUE. 119 IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 output_freq ${WriteInSeconds}s 120 IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 name sechiba_history 121 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 enabled .TRUE. 122 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 output_freq ${WriteInSeconds}s 123 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 name stomate_ipcc_history 124 fi 125 (( STOMATE_WRITE_STEP = 1 )) ;; 126 *) 127 IGCM_debug_Exit "SBG_Update " ${config_SBG_WriteFrequency} " invalid WriteFrequency : choose in 1Y, 1M, 5D, 1D." 128 IGCM_debug_Verif_Exit ;; 25 *Y|*y) 26 WriteInYears=$( echo ${config_SBG_WriteFrequency} | awk -F '[yY]' '{print $1}' ) 27 PeriodLengthInYears=$( echo ${config_UserChoices_PeriodLength} | awk -F '[yY]' '{print $1}' ) 28 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 enabled .TRUE. 29 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 output_freq ${WriteInYears}y 30 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 name stomate_history 31 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 enabled .TRUE. 32 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 output_freq ${WriteInYears}y 33 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 name stomate_ipcc_history 34 ;; 35 *M|*m) 36 WriteInMonths=$( echo ${config_SBG_WriteFrequency} | awk -F '[mM]' '{print $1}' ) 37 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 enabled .TRUE. 38 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 output_freq ${WriteInMonths}mo 39 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 name stomate_history 40 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 enabled .TRUE. 41 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 output_freq ${WriteInMonths}mo 42 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 name stomate_ipcc_history 43 ;; 44 5D|5d) 45 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 enabled .TRUE. 46 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 output_freq 5d 47 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 name stomate_history 48 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 enabled .TRUE. 49 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 output_freq 5d 50 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 name stomate_ipcc_history 51 ;; 52 1D|1d) 53 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 enabled .TRUE. 54 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 output_freq 1d 55 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 name stomate_history 56 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 enabled .TRUE. 57 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 output_freq 1d 58 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 name stomate_ipcc_history 59 ;; 60 *s) 61 WriteInSeconds=$( echo ${config_SBG_WriteFrequency} | awk -F '[s]' '{print $1}' ) 62 IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 enabled .TRUE. 63 IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 output_freq ${WriteInSeconds}s 64 IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 name sechiba_history 65 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 enabled .TRUE. 66 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 output_freq ${WriteInSeconds}s 67 IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 name stomate_ipcc_history 68 ;; 69 *) 70 IGCM_debug_Exit "SBG_Update " ${config_SBG_WriteFrequency} " invalid WriteFrequency : choose in 1Y, 1M, 5D, 1D." 71 IGCM_debug_Verif_Exit ;; 129 72 esac 130 73 131 132 #Use of XIOS library only133 134 if [ X${orchidee_UserChoices_XIOS} = Xy ] ; then135 (( STOMATE_WRITE_STEP = 0 ))136 fi137 138 IGCM_comp_modifyDefFile nonblocker orchidee.def STOMATE_HIST_DT ${STOMATE_WRITE_STEP}139 IGCM_comp_modifyDefFile nonblocker orchidee.def STOMATE_HISTLEVEL ${stomate_UserChoices_stomate_LEVEL}140 141 74 if ( [ ${CumulPeriod} -eq 1 ] && [ "${config_SBG_Restart}" = "n" ] ) ; then 142 143 75 echo "STOMATE : without restart" 76 IGCM_comp_modifyDefFile blocker orchidee.def STOMATE_RESTART_FILEIN NONE 144 77 else 145 78 IGCM_comp_modifyDefFile blocker orchidee.def STOMATE_RESTART_FILEIN stomate_rest_in.nc 146 79 fi 147 80 … … 156 89 157 90 if [ $( IGCM_date_DaysBetweenGregorianDate ${PeriodDateEnd} ${year}1230 ) -ge 0 ] ; then 158 159 160 # 161 # 91 IGCM_sys_Put_Out stomate_Cforcing.nc ${R_OUT_SBG_R}/${config_UserChoices_JobName}_${PeriodDateEnd}_stomate_Cforcing.nc 92 IGCM_sys_Put_Out stomate_forcing.nc ${R_OUT_SBG_R}/${config_UserChoices_JobName}_${PeriodDateEnd}_stomate_forcing.nc 93 # rm -f stomate_Cforcing.nc 94 # rm -f stomate_forcing.nc 162 95 fi 163 96 -
CONFIG/UNIFORM/v6_rc0/IPSLCM6/GENERAL/DRIVER/xios.driver
r2352 r2566 2 2 #----------------------------------- 3 3 function IOS_Initialize 4 { 4 { 5 5 IGCM_debug_PushStack "IOS_Initialize" 6 6 … … 16 16 17 17 echo UPDATE IOS !!! 18 # Activate server mode18 # Activate server mode 19 19 IGCM_comp_modifyXmlFile force iodef.xml using_server NONE true 20 # If lmdz_UserChoices_XIOS=y add LMDZ as component id : 21 if [ X${lmdz_UserChoices_XIOS} = Xy ] ; then 22 IGCM_comp_modifyXmlFile force iodef.xml oasis_codes_id NONE LMDZ,oceanx 23 fi 20 # Add LMDZ as component id 21 IGCM_comp_modifyXmlFile force iodef.xml oasis_codes_id NONE LMDZ,oceanx 24 22 if [ -f namcouple ] ; then 25 sed -e "s/2 LMDZ oceanx/3 LMDZ oceanx ${config_Executable_IOS[1]}/" namcouple > namcouple.tmp 26 23 sed -e "s/2 LMDZ oceanx/3 LMDZ oceanx ${config_Executable_IOS[1]}/" namcouple > namcouple.tmp 24 IGCM_sys_Mv namcouple.tmp namcouple 27 25 fi 28 26
Note: See TracChangeset
for help on using the changeset viewer.