Changeset 105
- Timestamp:
- 04/15/09 17:47:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libIGCM/libIGCM_post/libIGCM_post.ksh
r92 r105 110 110 IGCM_debug_Print 3 "RebuildFrequency frequency : ${config_Post_RebuildFrequency}" ;; 111 111 esac 112 ;; 113 *D|*d) 114 PeriodDay=$( echo ${config_Post_RebuildFrequency} | sed -e "s/[dD]//" ) 115 case ${config_UserChoices_PeriodLength} in 116 *Y|*y) 117 IGCM_debug_Print 3 "PeriodLength frequency ${config_UserChoices_PeriodLength} not compatbile with" 118 IGCM_debug_Print 3 "RebuildFrequency frequency ${config_Post_RebuildFrequency}" ;; 119 *M|*m) 120 IGCM_debug_Print 3 "PeriodLength frequency ${config_UserChoices_PeriodLength} not compatbile with" 121 IGCM_debug_Print 3 "RebuildFrequency frequency ${config_Post_RebuildFrequency}" ;; 122 *D|*d) 123 PeriodPost=$( echo ${config_UserChoices_PeriodLength} | sed -e "s/[dD]//" ) 124 if [ ${PeriodPost} -le ${PeriodDay} ] ; then 125 if [ $( expr $(( ${CumulPeriod} * ${PeriodPost} )) % ${PeriodDay} ) -eq 0 ] ; then 126 RebuildFrequency=true 127 NbRebuildDir=$( expr ${PeriodDay} / ${PeriodPost} ) 128 fi 129 else 130 IGCM_debug_Print 3 "PeriodLength frequency ${config_UserChoices_PeriodLength} not compatbile with" 131 IGCM_debug_Print 3 "RebuildFrequency frequency : ${config_Post_RebuildFrequency}" 132 fi ;; 133 134 esac 112 135 ;; 113 136 NONE|none) … … 271 294 IGCM_debug_Print 3 "${flag_post} frequency : ${config_Post_post_freq} " ;; 272 295 esac ;; 296 *D|*d) 297 PeriodDay=$( echo ${config_Post_RebuildFrequency} | sed -e "s/[dD]//" ) 298 case ${config_UserChoices_PeriodLength} in 299 *Y|*y) 300 IGCM_debug_Print 3 "PeriodLength frequency ${config_UserChoices_PeriodLength} not compatbile with" 301 IGCM_debug_Print 3 "${flag_post} frequency : ${config_Post_post_freq} " ;; 302 *M|*m) 303 IGCM_debug_Print 3 "PeriodLength frequency ${config_UserChoices_PeriodLength} not compatbile with" 304 IGCM_debug_Print 3 "${flag_post} frequency : ${config_Post_post_freq} " ;; 305 *D|*d) 306 PeriodPost=$( echo ${config_UserChoices_PeriodLength} | sed -e "s/[dD]//" ) 307 if [ ${PeriodPost} -le ${PeriodDay} ] ; then 308 if [ $( expr $(( ${CumulPeriod} * ${PeriodPost} )) % ${PeriodDay} ) -eq 0 ] ; then 309 eval ${post_freq}=true 310 POST=true 311 fi 312 else 313 IGCM_debug_Print 3 "PeriodLength frequency ${config_UserChoices_PeriodLength} not compatbile with" 314 IGCM_debug_Print 3 "${flag_post} frequency : ${config_Post_post_freq} " 315 fi;; 316 esac ;; 273 317 NONE|none) 274 318 ;;
Note: See TracChangeset
for help on using the changeset viewer.