Ignore:
Timestamp:
04/15/09 17:47:00 (15 years ago)
Author:
sdipsl
Message:

MAF : Add daily frequency possibility for asynchronous rebuild.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/libIGCM_post/libIGCM_post.ksh

    r92 r105  
    110110                        IGCM_debug_Print 3 "RebuildFrequency frequency : ${config_Post_RebuildFrequency}" ;; 
    111111                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 
    112135                ;; 
    113136            NONE|none) 
     
    271294                                        IGCM_debug_Print 3 "${flag_post} frequency : ${config_Post_post_freq} " ;; 
    272295                                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 ;; 
    273317                            NONE|none) 
    274318                                ;; 
Note: See TracChangeset for help on using the changeset viewer.