Changeset 1554
- Timestamp:
- 09/05/22 16:20:13 (20 months ago)
- Location:
- branches/libIGCM_CESMEP
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/libIGCM_CESMEP/AA_create_se
r1525 r1554 719 719 fi 720 720 721 # Execute C-ESM-EP driver (which launches jobs) 722 set -x 723 if [ $PostCesmep = SE ] ; then 724 ${SUBMIT_DIR}/cesmep_lite/libIGCM_post.sh $DateBegin $PeriodDateEnd 725 fi 726 721 727 # Clean RUN_DIR_PATH (necessary for cesium and titane only) 722 728 IGCM_sys_RmRunDir -Rf ${RUN_DIR_PATH} -
branches/libIGCM_CESMEP/AA_create_ts
r1549 r1554 820 820 IGCM_debug_Verif_Exit 821 821 # -------------------------------------------------------------------- 822 #D- Submit MONITORING 822 #D- Submit MONITORING and C-ESM-EP 823 823 # -------------------------------------------------------------------- 824 824 if ( [ X${TsTask} = X2D ] || [ X${TsTask} = X3D ] || [ X${TsTask} = X ] ) ; then … … 827 827 Script_Post_Output=monitoring.${PeriodDateEnd} 828 828 IGCM_sys_QsubPost monitoring 829 if [ $PostCesmep = TS ] ; then 830 ${SUBMIT_DIR}/cesmep_lite/libIGCM_post.sh $DateBegin $PeriodDateEnd 831 fi 829 832 fi 830 833 fi -
branches/libIGCM_CESMEP/AA_pack_output
r1525 r1554 330 330 done 331 331 332 # Execute C-ESM-EP driver (which launches jobs) 333 if [ $PostCesmep = Pack ] ; then 334 ${SUBMIT_DIR}/cesmep_lite/libIGCM_post.sh $DateBegin $PeriodDateEnd 335 fi 336 332 337 # Flush post-processing submission 333 338 if [ -f ${R_BUFR}/FlushPost_${DateEnd}.ksh ] ; then -
branches/libIGCM_CESMEP/ins_job
r1547 r1554 653 653 654 654 fi 655 # 656 # Install a light copy of C-ESM-EP in SUBMIT_DIR/Cesmep and create a 657 # C-ESM-EP launch script there. 658 # 659 [ ${new_struct} == yes ] && prefix="$JobName/" 660 IGCM_card_DefineVariableFromOption ${prefix}config.card Post Cesmep 661 662 # Compute mail adress - inspired by libIGCM_post.ksh - should be turned in a function 663 if [ ! -z ${config_UserChoices_MailName} ] ; then 664 MailAdress=${config_UserChoices_MailName} 665 elif [ -f ~/.forward ] ; then 666 MailAdress=$( cat ~/.forward ) 667 else 668 MailAdress=${USER} 669 fi 670 671 # 672 if [ ${config_Post_Cesmep} != FALSE ]; then 673 if [ X"${SYSTEM}" == "Xirene" ] ; then 674 IGCM_card_DefineVariableFromOption ${prefix}config.card Post CesmepCode 675 IGCM_card_DefineVariableFromOption ${prefix}config.card Post CesmepComparison 676 IGCM_card_DefineVariableFromOption ${prefix}config.card UserChoices DateBegin 677 # Need R_SAVE 678 IGCM_config_CommonConfiguration ${prefix}config.card 679 ${config_Post_CesmepCode}/libIGCM_install.sh $(pwd)/${prefix} \ 680 ${config_Post_CesmepComparison} $JobName ${R_SAVE} ${ProjectID} \ 681 ${MailAdress} ${config_UserChoices_DateBegin} ${config_Post_Cesmep} 682 else 683 echo "\nERROR Cannot yet handle CESMEP on this computer system" 684 echo "=> Variable Cesmep in config.card's section Post must be set to FALSE" 685 exit 5 686 fi 687 fi 655 688 #- 656 689 [[ ${x_v} = 'verbose' ]] && print - ""; -
branches/libIGCM_CESMEP/libIGCM_config/libIGCM_config.ksh
r1546 r1554 179 179 if ( [ X${config_Post_MetricsPCMDI} = X${NULL_STR} ] || [ X${config_Post_MetricsPCMDI} = X ] ) ; then 180 180 config_Post_MetricsPCMDI=FALSE 181 fi 182 183 #==================================================== 184 # Cesmep : apply default value FALSE if not defined, and if TRUE 185 # set it based on an adhoc algorithm 186 if ( [ X${config_Post_Cesmep} = XNONE ] || [ X${config_Post_Cesmep} = X ] ) ; then 187 config_Post_Cesmep=FALSE 188 elif [ X${config_Post_Cesmep} = XTRUE ]; then 189 if ([ ! X${config_Post_SeasonalFrequency} = XNONE ] && [ ! X${config_Post_SeasonalFrequency} = X ] ) ; then 190 config_Post_Cesmep="SE" 191 elif ([ ! X${config_Post_TimeSeriesFrequency} = XNONE ] && [ ! X${config_Post_TimeSeriesFrequency} = X ] ) ; then 192 config_Post_Cesmep="TS" 193 elif ([ ! X${config_Post_PackFrequency} = XNONE ] && [ ! X${config_Post_PackFrequency} = X ] ) ; then 194 config_Post_Cesmep="Pack" 195 else 196 # This covers case SpaceName=TEST with no SE nor TS (nor Pack) 197 config_Post_Cesmep="AtEnd" 198 fi 199 # 200 else 201 # Check that user-provided value make sense 202 if ([ X${config_Post_Cesmep} = XSE ]) ; then 203 if ([ X${config_Post_SeasonalFrequency} = XNONE ] || [ X${config_Post_SeasonalFrequency} = X ] ) ; then 204 IGCM_debug_Exit "Cannot use SE for Cesmep : SE post-processing is not active" 205 fi 206 elif ([ X${config_Post_Cesmep} = XTS ]) ; then 207 if ([ X${config_Post_TimeSeriesFrequency} = XNONE ] || [ X${config_Post_TimeSeriesFrequency} = X ] ) ; then 208 IGCM_debug_Exit "Cannot use TS for Cesmep : TS post-processing is not active" 209 fi 210 elif ([ X${config_Post_Cesmep} = XPack ]) ; then 211 if ([ X${config_Post_PackFrequency} = XNONE ] || [ X${config_Post_PackFrequency} = X ] ) ; then 212 IGCM_debug_Exit "Cannot use Packed output for Cesmep : Pack post-processing is not active" 213 fi 214 elif ([ X${config_Post_Cesmep} != XAtend ]) ; then 215 IGCM_debug_Exit "config.card Post section value for Cesmep is invalid (use SE, TS, Pack, AtEnd or TRUE) : ${config_Post_Cesmep}" 216 fi 217 fi 218 if ( [ X${config_Post_CesmepComparison} = XNONE ] || [ X${config_Post_CesmepComparison} = X ] ) ; then 219 config_Post_CesmepComparison=standard_comparison 220 fi 221 if ( [ X${config_Post_CesmepCode} = XNONE ] || [ X${config_Post_CesmepCode} = X ] ) ; then 222 config_Post_CesmepCode=/ccc/work/cont003/gen0826/senesis/cesmep 181 223 fi 182 224 -
branches/libIGCM_CESMEP/libIGCM_post/libIGCM_post.ksh
r1396 r1554 29 29 TimeSeriesFrequency=false 30 30 SeasonalFrequency=false 31 CesmepAtEnd=false 31 32 unset list_post 32 33 # … … 108 109 fi 109 110 fi 111 112 if ( [ ${SimulationLengthInDays} -ge ${ExperienceLengthInDays} ] && [ X${config_Post_Cesmep} = XAtEnd ] ) ; then 113 CesmepAtEnd=true 114 fi 115 116 110 117 IGCM_debug_PopStack "IGCM_post_Configure" 111 118 } … … 197 204 echo "export RESOL_SBG=${RESOL_SBG} " >> ${FunctionPath} 198 205 echo "export listVarEnv=${listVarEnv} " >> ${FunctionPath} 206 echo "export PostCesmep=${config_Post_Cesmep} " >> ${FunctionPath} 199 207 echo "export Script_Post_Output=${Script_Post_Output} " >> ${FunctionPath} 200 208 # if [ X${MASTER} = Xtitane ] ; then … … 234 242 export RESOL_SRF=${RESOL_SRF} 235 243 export RESOL_SBG=${RESOL_SBG} 244 export PostCesmep=${config_Post_Cesmep} 236 245 export listVarEnv=${listVarEnv} 237 246 export Script_Post_Output=${Script_Post_Output} … … 315 324 echo "export RESOL_SBG=${RESOL_SBG} " >> ${FunctionPath} 316 325 echo "export listVarEnv=${listVarEnv} " >> ${FunctionPath} 326 echo "export PostCesmep=${config_Post_Cesmep} " >> ${FunctionPath} 317 327 echo "export Script_Post_Output=${Script_Post_Output} " >> ${FunctionPath} 318 328 # if [ X${MASTER} = Xtitane ] ; then … … 353 363 export RESOL_SBG=${RESOL_SBG} 354 364 export listVarEnv=${listVarEnv} 365 export PostCesmep=${config_Post_Cesmep} 355 366 export Script_Post_Output=${Script_Post_Output} 356 367 . ${libIGCM_POST}/libIGCM_debug/libIGCM_debug.ksh … … 415 426 echo "export RESOL_SBG=${RESOL_SBG} " >> ${FunctionPath} 416 427 echo "export listVarEnv=${listVarEnv} " >> ${FunctionPath} 428 echo "export PostCesmep=${config_Post_Cesmep} " >> ${FunctionPath} 417 429 echo "export Script_Post_Output=${Script_Post_Output} " >> ${FunctionPath} 418 430 # if [ X${MASTER} = Xtitane ] ; then … … 448 460 export RESOL_SBG=${RESOL_SBG} 449 461 export listVarEnv=${listVarEnv} 462 export PostCesmep=${config_Post_Cesmep} 450 463 export Script_Post_Output=${Script_Post_Output} 451 464 . ${libIGCM_POST}/libIGCM_debug/libIGCM_debug.ksh … … 499 512 export StandAlone=false 500 513 export listVarEnv=${listVarEnv} 514 export PostCesmep=${config_Post_Cesmep} 501 515 export Script_Post_Output=${Script_Post_Output} 502 516 . ${libIGCM_POST}/libIGCM_debug/libIGCM_debug.ksh … … 529 543 export StandAlone=false 530 544 export listVarEnv=${listVarEnv} 545 export PostCesmep=${config_Post_Cesmep} 531 546 export Script_Post_Output=${Script_Post_Output} 532 547 . ${libIGCM_POST}/libIGCM_debug/libIGCM_debug.ksh … … 560 575 echo "export StandAlone=false " >> ${RUN_DIR}/REBUILD_${PeriodDateBegin}/rebuild.ksh 561 576 echo "export listVarEnv=${listVarEnv} " >> ${RUN_DIR}/REBUILD_${PeriodDateBegin}/rebuild.ksh 577 echo "export PostCesmep=${config_Post_Cesmep} " >> ${RUN_DIR}/REBUILD_${PeriodDateBegin}/rebuild.ksh 562 578 echo "export Script_Post_Output=${Script_Post_Output}" >> ${RUN_DIR}/REBUILD_${PeriodDateBegin}/rebuild.ksh 563 579 echo "export script=${script} " >> ${RUN_DIR}/REBUILD_${PeriodDateBegin}/rebuild.ksh … … 590 606 export StandAlone=false 591 607 export listVarEnv=${listVarEnv} 608 export PostCesmep=${config_Post_Cesmep} 592 609 export Script_Post_Output=${Script_Post_Output} 593 610 . ${libIGCM_POST}/libIGCM_debug/libIGCM_debug.ksh … … 645 662 export RESOL_SBG=${RESOL_SBG} 646 663 export listVarEnv=${listVarEnv} 664 export PostCesmep=${config_Post_Cesmep} 647 665 export Script_Post_Output=${Script_Post_Output} 648 666 . ${libIGCM_POST}/libIGCM_debug/libIGCM_debug.ksh … … 655 673 EOF 656 674 fi 675 676 #========== CESMEP POST-PROCESSING at job end ========# 677 678 IGCM_debug_Print 1 "Possibly launching C-ESM-EP run script" 679 if [ ${CesmepAtEnd} = true ] ; then 680 # 681 IGCM_debug_Print 1 "Launching C-ESM-EP run script" 682 ${SUBMIT_DIR}/cesmep_lite/libIGCM_post.sh $DateBegin $PeriodDateEnd 683 fi 684 685 657 686 IGCM_debug_PopStack "IGCM_post_Submit" 658 687 } … … 790 819 # - from libIGCM (config_UserChoices_PeriodLength frequency * CumulPeriod) and 791 820 # - post-processing compatible frequency (*Y, *M, *D, *y, *m, *d) 792 # --> turn on post-processing submission when their modulo is zero 821 # --> turn on post-processing submission when their modulo is zero by 822 # setting env variable post_freq 793 823 # Input parameter are the name of the variable, not the frequency value itself 794 824 # example
Note: See TracChangeset
for help on using the changeset viewer.