Ignore:
Timestamp:
07/25/14 17:41:55 (10 years ago)
Author:
sdipsl
Message:

Remove OldPrefix? from run.card to ease REDO process when needed. see #168

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/AA_move-and-rename

    r906 r1028  
    182182 
    183183if [ -f ${SUBMIT_DIR}/run.card ] ; then 
    184   IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/run.card Configuration OldPrefix 
    185   IGCM_debug_PrintVariables 2 run_Configuration_OldPrefix 
     184  IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/run.card Configuration PeriodDateBegin 
     185  IGCM_debug_PrintVariables 2 run_Configuration_PeriodDateBegin 
    186186  if [ X${old_run_Configuration_PeriodState} != X"Completed" ] ; then 
    187     DateEnd=$( IGCM_date_ConvertFormatToGregorian $( echo ${run_Configuration_OldPrefix} | awk -F'_' '{print $2}' ) ) 
     187    DateEnd=$( IGCM_date_AddDaysToGregorianDate $( IGCM_date_ConvertFormatToGregorian ${PeriodDateBegin} ) -1 ) 
    188188  else 
    189189    DateEnd=$( IGCM_date_ConvertFormatToGregorian ${config_UserChoices_DateEnd} ) 
Note: See TracChangeset for help on using the changeset viewer.