Changeset 892 for trunk/libIGCM/libIGCM_config/libIGCM_config.ksh
- Timestamp:
- 07/08/13 19:07:34 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libIGCM/libIGCM_config/libIGCM_config.ksh
r891 r892 405 405 IGCM_debug_PushStack "IGCM_config_DateCoherency" 406 406 407 # If one of the following modulo is not zero :408 # we will issue an error then explain and exit in409 # AA_job IGCM_debug_Verif_Exit call before binary submission410 411 407 echo 412 408 IGCM_debug_Print 1 "IGCM_config_DateCoherency" … … 430 426 ;; 431 427 esac 432 VerifiedPeriodDateEnd=$( IGCM_date_AddDaysToGregorianDate ${DateBegin} ${Length} ) 428 VerifiedPeriodDateEnd=$( IGCM_date_AddDaysToGregorianDate ${DateBegin} ${Length}-1 ) 429 430 if [ ${VerifiedPeriodDateEnd} != ${PeriodDateEnd} ] ; then 431 IGCM_debug_Print 1 "From run.card PeriodDateEnd is not consistent with DateBegin and CumulPeriod." 432 IGCM_debug_Print 1 "We have DateBegin = ${DateBegin}" 433 IGCM_debug_Print 1 "We have CumulPeriod = ${CumulPeriod}" 434 IGCM_debug_Print 1 "We have PeriodDateEnd = ${PeriodDateEnd}" 435 IGCM_debug_Print 1 "We have VerifiedPeriodDateEnd = ${VerifiedPeriodDateEnd}" 436 IGCM_debug_Print 1 "You must have change run.card in an inconsistent way." 437 438 IGCM_debug_Exit "STOP here to avoid further issues." 439 fi 433 440 434 441 # PeriodDateBegin + PeriodLength = PeriodDateEnd … … 629 636 fi 630 637 631 # 638 # Determine number of day(s) in PeriodLength 632 639 IGCM_date_GetYearMonthDay $PeriodDateBegin year month day 633 640 IGCM_config_DaysInPeriodLength 641 642 # Check coherency between (PeriodDateBegin, PeriodDateEnd) and (DateBegin, CumulPeriod, PeriodLength) 643 IGCM_config_DateCoherency 644 # And EXIT if not OK 645 IGCM_debug_Verif_Exit 634 646 635 647 IGCM_card_WriteOption ${SUBMIT_DIR}/run.card Configuration PeriodState "Running"
Note: See TracChangeset
for help on using the changeset viewer.