Changeset 1220 for trunk/libIGCM/libIGCM_config
- Timestamp:
- 08/25/15 16:46:24 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libIGCM/libIGCM_config/libIGCM_config.ksh
r1214 r1220 311 311 fi 312 312 313 #Test state of run in run.card 314 IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/run.card Configuration PeriodState 315 316 if ( [ ${run_Configuration_PeriodState} != "Start" ] && [ ${run_Configuration_PeriodState} != "Running" ] && [ ${run_Configuration_PeriodState} != "OnQueue" ] && [ ${run_Configuration_PeriodState} != "Continue" ] ) ; then 317 echo 318 IGCM_debug_Print 1 "!! Error in run.card with PeriodState : " ${run_Configuration_PeriodState} "!!" 319 IGCM_debug_Print 1 "Check post-processing jobs carefully by running ${libIGCM}/RunChecker.job -p ${SUBMIT_DIR}" 320 IGCM_debug_Print 1 "Then try running ${libIGCM}/clean_month.job to rerun one period" 321 IGCM_debug_Print 1 "Then try running ${libIGCM}/clean_year.job to rerun more." 322 IGCM_debug_Exit 323 IGCM_debug_Verif_Exit 324 fi 313 # Test state of run in run.card. Will schedule an exit if another process setted it to "Fatal" 314 IGCM_config_StateCheck 315 316 # And EXIT if not OK 317 IGCM_debug_Verif_Exit 325 318 fi 326 319 … … 455 448 } 456 449 450 #=================================== 451 function IGCM_config_StateCheck 452 { 453 IGCM_debug_PushStack "IGCM_config_StateCheck" 454 455 #Test state of run in run.card 456 IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/run.card Configuration PeriodState 457 458 if [ ${run_Configuration_PeriodState} = "Fatal" ] ; then 459 echo 460 IGCM_debug_Print 1 "!! Error in run.card with PeriodState : " ${run_Configuration_PeriodState} "!!" 461 IGCM_debug_Print 1 "Check post-processing jobs carefully by running ${libIGCM}/RunChecker.job -p ${SUBMIT_DIR}" 462 IGCM_debug_Print 1 "Then try running ${libIGCM}/clean_month.job to rerun one period" 463 IGCM_debug_Print 1 "Then try running ${libIGCM}/clean_year.job to rerun more." 464 IGCM_debug_Exit 465 fi 466 467 IGCM_debug_PopStack "IGCM_config_StateCheck" 468 } 457 469 458 470 #=================================== … … 598 610 #================================================# 599 611 600 #Test state of run in run.card 601 IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/run.card Configuration PeriodState 602 if ( [ ${run_Configuration_PeriodState} != "Running" ] && [ ${run_Configuration_PeriodState} != "OnQueue" ] && [ ${run_Configuration_PeriodState} != "Continue" ] ) ; then 603 echo 604 IGCM_debug_Print 1 "!! Error in run.card with PeriodState : " ${run_Configuration_PeriodState} "!!" 605 IGCM_debug_Print 1 "Try running ${libIGCM}/clean_month.job to fix this" 606 echo 607 IGCM_debug_Exit 608 IGCM_debug_Verif_Exit 609 fi 612 # Test state of run in run.card. Will schedule an exit if another process setted it to "Fatal" 613 IGCM_config_StateCheck 614 # And EXIT if not OK 615 IGCM_debug_Verif_Exit 610 616 611 617 #===================================# … … 659 665 IGCM_debug_Verif_Exit 660 666 667 # Test state of run in run.card. Will schedule an exit if another process setted it to "Fatal" 668 IGCM_config_StateCheck 669 # And EXIT if not OK 670 IGCM_debug_Verif_Exit 671 672 # We can say we are "Running" now. 661 673 IGCM_card_WriteOption ${SUBMIT_DIR}/run.card Configuration PeriodState "Running" 662 674 fi … … 1250 1262 echo 1251 1263 1264 # Test state of run in run.card. Will schedule an exit if another process setted it to "Fatal" 1265 IGCM_config_StateCheck 1266 1267 # And EXIT if not OK 1268 IGCM_debug_Verif_Exit 1269 1252 1270 if [ ${SimulationLengthInDays} -ge ${ExperienceLengthInDays} ] ; then 1253 1271 #==========================#
Note: See TracChangeset
for help on using the changeset viewer.