Changeset 1185 for trunk


Ignore:
Timestamp:
04/02/15 15:55:22 (9 years ago)
Author:
sdipsl
Message:

Bugfix. It failed if run.card contained PeriodState?="Fatal" and PeriodDateBegin?, PeriodDateEnd? and CumulPeriod? were empty.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/AA_clean_month

    r1059 r1185  
    9494  IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/run.card Configuration CumulPeriod 
    9595 
     96  #  
     97  if [ X${run_Configuration_CumulPeriod} = X ] ; then 
     98    echo -e "\033[1;32mCumulPeriod is empty so we want to erase run.card to start properly. Do you want that?" 
     99    echo -n -e " Your answer (y/n) : \033[m" 
     100    read reponse 
     101    case ${reponse} in 
     102 
     103    oui|OUI|o|y|yes|YES) 
     104      echo "OK. Now you can submit the Job : ${SUBMIT_DIR}/Job_${config_UserChoices_JobName}." 
     105      IGCM_sys_Rm ${SUBMIT_DIR}/run.card 
     106      ;; 
     107    non|NON|n|no|NO) 
     108      echo "Nothing to do !" 
     109      ;; 
     110    esac 
     111    exit 0 
     112  fi 
     113 
    96114  PeriodDateEnd=$( IGCM_date_ConvertFormatToGregorian ${run_Configuration_PeriodDateEnd} ) 
    97115  echo "Search files with ${PeriodDateEnd} in ${R_SAVE}" 
     
    186204  fi 
    187205 
    188   if ( [ X${run_Configuration_CumulPeriod} = X ] || [ X${run_Configuration_CumulPeriod} = X1 ] ); then 
    189  
     206  if [ X${run_Configuration_CumulPeriod} = X1 ] ; then 
    190207    echo -e "\033[1;32mCumulPeriod=1 so we want to erase run.card to start properly. Do you want that too?" 
    191208    echo -n -e " Your answer (y/n) : \033[m" 
     
    201218        ;; 
    202219    esac 
    203  
    204220  fi 
    205221fi 
Note: See TracChangeset for help on using the changeset viewer.