Changeset 1038 for CONFIG/IPSLCM


Ignore:
Timestamp:
05/25/10 10:42:13 (12 years ago)
Author:
mmaipsl
Message:

Change WRITE_STEP for SECHIBA and STOMATE to -1 (real monthly mean) if asked write frequency is "1M".

Location:
CONFIG/IPSLCM/IPSLCM5A
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • CONFIG/IPSLCM/IPSLCM5A/EXP00/COMP/orchidee.driver

    r1014 r1038  
    3434    typeset SECHIBA_WRITE_STEP 
    3535 
    36     case ${config_SRF_WriteFrequency} in 
     36    SRF_WriteFrequency=$( echo ${config_SRF_WriteFrequency} | sed -e 's/\([0-9]*[yYmMdDs]\).*/\1/' )  
     37    case ${SRF_WriteFrequency} in 
    3738        *Y|*y)  
    38             WriteInYears=$( echo ${1} | awk -F '[yY]' "{print ${config_SRF_WriteFrequency}}" ) 
    39             PeriodLengthInYears=$( echo ${1} | awk -F '[yY]' "{print ${config_UserChoices_PeriodLength}}" ) 
     39            WriteInYears=$( echo ${SRF_WriteFrequency} | awk -F '[yY]' '{print $1}' ) 
     40            PeriodLengthInYears=$( echo ${config_UserChoices_PeriodLength} | awk -F '[yY]' '{print $1}' ) 
    4041            (( SECHIBA_WRITE_STEP = PeriodLengthInDays * WriteInYears / PeriodLengthInYears * 86400 )) ;; 
    41         *M|*m)  
    42             WriteInMonths=$( echo ${1} | awk -F '[mM]' "{print ${config_SRF_WriteFrequency}}" ) 
     42        1M) 
    4343            case ${config_UserChoices_PeriodLength} in 
    4444            *Y|*y) 
    45                 PeriodLengthInYears=$( echo ${1} | awk -F '[yY]' "{print ${config_UserChoices_PeriodLength}}" ) 
     45                SECHIBA_WRITE_STEP=-1. 
     46                ;; 
     47            *M|*m) 
     48                SECHIBA_WRITE_STEP=-1. 
     49                ;; 
     50            *) 
     51                (( SECHIBA_WRITE_STEP = $( IGCM_date_DaysInMonth $year $month ) * 86400 )) 
     52                ;; 
     53            esac 
     54            ;; 
     55        *M|*m)  
     56            WriteInMonths=$( echo ${SRF_WriteFrequency} | awk -F '[mM]' '{print $1}' ) 
     57            case ${config_UserChoices_PeriodLength} in 
     58            *Y|*y) 
     59                PeriodLengthInYears=$( echo ${config_UserChoices_PeriodLength} | awk -F '[yY]' '{print $1}' ) 
    4660                (( SECHIBA_WRITE_STEP = PeriodLengthInDays * 86400 / PeriodLengthInYears / 12  )) 
    4761                ;; 
    4862            *M|*m) 
    49                 PeriodLengthInMonths=$( echo ${1} | awk -F '[mM]' "{print ${config_UserChoices_PeriodLength}}" ) 
     63                PeriodLengthInMonths=$( echo ${config_UserChoices_PeriodLength} | awk -F '[mM]' '{print $1}' ) 
    5064                (( SECHIBA_WRITE_STEP = PeriodLengthInDays * WriteInMonths  * 86400 / PeriodLengthInMonths  )) 
    5165                ;; 
     
    6074            (( SECHIBA_WRITE_STEP = 86400 )) ;; 
    6175        *s) 
    62             WriteInSeconds=$( echo ${1} | awk -F '[s]' "{print ${config_SRF_WriteFrequency}}" ) 
     76            WriteInSeconds=$( echo ${SRF_WriteFrequency} | awk -F '[s]' '{print $1}' ) 
    6377            (( SECHIBA_WRITE_STEP = WriteInSeconds )) ;; 
    6478        *)  
    65             IGCM_debug_Exit "SRF_Update " ${config_SRF_WriteFrequency} " invalid WriteFrequency : choose in 1Y, 1M, 5D, 1D."  
     79            IGCM_debug_Exit "SRF_Update " ${SRF_WriteFrequency} " invalid WriteFrequency : choose in 1Y, 1M, 5D, 1D."  
    6680            IGCM_debug_Verif_Exit ;; 
    6781    esac 
  • CONFIG/IPSLCM/IPSLCM5A/EXP00/COMP/stomate.driver

    r793 r1038  
    2525            PeriodLengthInYears=$( echo ${config_UserChoices_PeriodLength} | awk -F '[yY]' '{print $1}' ) 
    2626            (( STOMATE_WRITE_STEP = PeriodLengthInDays * WriteInYears / PeriodLengthInYears )) ;; 
     27        1M|1m)  
     28            case ${config_UserChoices_PeriodLength} in 
     29            *Y|*y) 
     30                STOMATE_WRITE_STEP=-1. 
     31                ;; 
     32            *M|*m) 
     33                STOMATE_WRITE_STEP=-1. 
     34                ;; 
     35            *) 
     36                (( STOMATE_WRITE_STEP = $( IGCM_date_DaysInMonth $year $month ) )) ;; 
     37            esac 
     38            ;; 
    2739        *M|*m)  
    2840            WriteInMonths=$( echo ${config_SBG_WriteFrequency} | awk -F '[mM]' '{print $1}' ) 
     
    3042            *Y|*y) 
    3143                PeriodLengthInYears=$( echo ${config_UserChoices_PeriodLength} | awk -F '[yY]' '{print $1}' ) 
    32                 (( STOMATE_WRITE_STEP = 30 )) ;; 
     44                (( STOMATE_WRITE_STEP = 30 )) 
     45                ;; 
    3346            *M|*m) 
    3447                PeriodLengthInMonths=$( echo ${config_UserChoices_PeriodLength} | awk -F '[mM]' '{print $1}' ) 
    35                 (( STOMATE_WRITE_STEP = PeriodLengthInDays * WriteInMonths / PeriodLengthInMonths )) ;; 
     48                (( STOMATE_WRITE_STEP = PeriodLengthInDays * WriteInMonths / PeriodLengthInMonths )) 
     49                ;; 
    3650            *) 
    3751                (( STOMATE_WRITE_STEP = $( IGCM_date_DaysInMonth $year $month ) )) ;; 
  • CONFIG/IPSLCM/IPSLCM5A/historical/COMP/orchidee.driver

    r1014 r1038  
    3434    typeset SECHIBA_WRITE_STEP 
    3535 
    36     case ${config_SRF_WriteFrequency} in 
     36    SRF_WriteFrequency=$( echo ${config_SRF_WriteFrequency} | sed -e 's/\([0-9]*[yYmMdDs]\).*/\1/' )  
     37    case ${SRF_WriteFrequency} in 
    3738        *Y|*y)  
    38             WriteInYears=$( echo ${1} | awk -F '[yY]' "{print ${config_SRF_WriteFrequency}}" ) 
    39             PeriodLengthInYears=$( echo ${1} | awk -F '[yY]' "{print ${config_UserChoices_PeriodLength}}" ) 
     39            WriteInYears=$( echo ${SRF_WriteFrequency} | awk -F '[yY]' '{print $1}' ) 
     40            PeriodLengthInYears=$( echo ${config_UserChoices_PeriodLength} | awk -F '[yY]' '{print $1}' ) 
    4041            (( SECHIBA_WRITE_STEP = PeriodLengthInDays * WriteInYears / PeriodLengthInYears * 86400 )) ;; 
    41         *M|*m)  
    42             WriteInMonths=$( echo ${1} | awk -F '[mM]' "{print ${config_SRF_WriteFrequency}}" ) 
     42        1M) 
    4343            case ${config_UserChoices_PeriodLength} in 
    4444            *Y|*y) 
    45                 PeriodLengthInYears=$( echo ${1} | awk -F '[yY]' "{print ${config_UserChoices_PeriodLength}}" ) 
     45                SECHIBA_WRITE_STEP=-1. 
     46                ;; 
     47            *M|*m) 
     48                SECHIBA_WRITE_STEP=-1. 
     49                ;; 
     50            *) 
     51                (( SECHIBA_WRITE_STEP = $( IGCM_date_DaysInMonth $year $month ) * 86400 )) 
     52                ;; 
     53            esac 
     54            ;; 
     55        *M|*m)  
     56            WriteInMonths=$( echo ${SRF_WriteFrequency} | awk -F '[mM]' '{print $1}' ) 
     57            case ${config_UserChoices_PeriodLength} in 
     58            *Y|*y) 
     59                PeriodLengthInYears=$( echo ${config_UserChoices_PeriodLength} | awk -F '[yY]' '{print $1}' ) 
    4660                (( SECHIBA_WRITE_STEP = PeriodLengthInDays * 86400 / PeriodLengthInYears / 12  )) 
    4761                ;; 
    4862            *M|*m) 
    49                 PeriodLengthInMonths=$( echo ${1} | awk -F '[mM]' "{print ${config_UserChoices_PeriodLength}}" ) 
     63                PeriodLengthInMonths=$( echo ${config_UserChoices_PeriodLength} | awk -F '[mM]' '{print $1}' ) 
    5064                (( SECHIBA_WRITE_STEP = PeriodLengthInDays * WriteInMonths  * 86400 / PeriodLengthInMonths  )) 
    5165                ;; 
     
    6074            (( SECHIBA_WRITE_STEP = 86400 )) ;; 
    6175        *s) 
    62             WriteInSeconds=$( echo ${1} | awk -F '[s]' "{print ${config_SRF_WriteFrequency}}" ) 
     76            WriteInSeconds=$( echo ${SRF_WriteFrequency} | awk -F '[s]' '{print $1}' ) 
    6377            (( SECHIBA_WRITE_STEP = WriteInSeconds )) ;; 
    6478        *)  
    65             IGCM_debug_Exit "SRF_Update " ${config_SRF_WriteFrequency} " invalid WriteFrequency : choose in 1Y, 1M, 5D, 1D."  
     79            IGCM_debug_Exit "SRF_Update " ${SRF_WriteFrequency} " invalid WriteFrequency : choose in 1Y, 1M, 5D, 1D."  
    6680            IGCM_debug_Verif_Exit ;; 
    6781    esac 
  • CONFIG/IPSLCM/IPSLCM5A/historical/COMP/stomate.driver

    r793 r1038  
    2525            PeriodLengthInYears=$( echo ${config_UserChoices_PeriodLength} | awk -F '[yY]' '{print $1}' ) 
    2626            (( STOMATE_WRITE_STEP = PeriodLengthInDays * WriteInYears / PeriodLengthInYears )) ;; 
     27        1M|1m)  
     28            case ${config_UserChoices_PeriodLength} in 
     29            *Y|*y) 
     30                STOMATE_WRITE_STEP=-1. 
     31                ;; 
     32            *M|*m) 
     33                STOMATE_WRITE_STEP=-1. 
     34                ;; 
     35            *) 
     36                (( STOMATE_WRITE_STEP = $( IGCM_date_DaysInMonth $year $month ) )) ;; 
     37            esac 
     38            ;; 
    2739        *M|*m)  
    2840            WriteInMonths=$( echo ${config_SBG_WriteFrequency} | awk -F '[mM]' '{print $1}' ) 
     
    3042            *Y|*y) 
    3143                PeriodLengthInYears=$( echo ${config_UserChoices_PeriodLength} | awk -F '[yY]' '{print $1}' ) 
    32                 (( STOMATE_WRITE_STEP = 30 )) ;; 
     44                (( STOMATE_WRITE_STEP = 30 )) 
     45                ;; 
    3346            *M|*m) 
    3447                PeriodLengthInMonths=$( echo ${config_UserChoices_PeriodLength} | awk -F '[mM]' '{print $1}' ) 
    35                 (( STOMATE_WRITE_STEP = PeriodLengthInDays * WriteInMonths / PeriodLengthInMonths )) ;; 
     48                (( STOMATE_WRITE_STEP = PeriodLengthInDays * WriteInMonths / PeriodLengthInMonths )) 
     49                ;; 
    3650            *) 
    3751                (( STOMATE_WRITE_STEP = $( IGCM_date_DaysInMonth $year $month ) )) ;; 
  • CONFIG/IPSLCM/IPSLCM5A/piControl/COMP/orchidee.driver

    r1014 r1038  
    3434    typeset SECHIBA_WRITE_STEP 
    3535 
    36     case ${config_SRF_WriteFrequency} in 
     36    SRF_WriteFrequency=$( echo ${config_SRF_WriteFrequency} | sed -e 's/\([0-9]*[yYmMdDs]\).*/\1/' )  
     37    case ${SRF_WriteFrequency} in 
    3738        *Y|*y)  
    38             WriteInYears=$( echo ${1} | awk -F '[yY]' "{print ${config_SRF_WriteFrequency}}" ) 
    39             PeriodLengthInYears=$( echo ${1} | awk -F '[yY]' "{print ${config_UserChoices_PeriodLength}}" ) 
     39            WriteInYears=$( echo ${SRF_WriteFrequency} | awk -F '[yY]' '{print $1}' ) 
     40            PeriodLengthInYears=$( echo ${config_UserChoices_PeriodLength} | awk -F '[yY]' '{print $1}' ) 
    4041            (( SECHIBA_WRITE_STEP = PeriodLengthInDays * WriteInYears / PeriodLengthInYears * 86400 )) ;; 
    41         *M|*m)  
    42             WriteInMonths=$( echo ${1} | awk -F '[mM]' "{print ${config_SRF_WriteFrequency}}" ) 
     42        1M) 
    4343            case ${config_UserChoices_PeriodLength} in 
    4444            *Y|*y) 
    45                 PeriodLengthInYears=$( echo ${1} | awk -F '[yY]' "{print ${config_UserChoices_PeriodLength}}" ) 
     45                SECHIBA_WRITE_STEP=-1. 
     46                ;; 
     47            *M|*m) 
     48                SECHIBA_WRITE_STEP=-1. 
     49                ;; 
     50            *) 
     51                (( SECHIBA_WRITE_STEP = $( IGCM_date_DaysInMonth $year $month ) * 86400 )) 
     52                ;; 
     53            esac 
     54            ;; 
     55        *M|*m)  
     56            WriteInMonths=$( echo ${SRF_WriteFrequency} | awk -F '[mM]' '{print $1}' ) 
     57            case ${config_UserChoices_PeriodLength} in 
     58            *Y|*y) 
     59                PeriodLengthInYears=$( echo ${config_UserChoices_PeriodLength} | awk -F '[yY]' '{print $1}' ) 
    4660                (( SECHIBA_WRITE_STEP = PeriodLengthInDays * 86400 / PeriodLengthInYears / 12  )) 
    4761                ;; 
    4862            *M|*m) 
    49                 PeriodLengthInMonths=$( echo ${1} | awk -F '[mM]' "{print ${config_UserChoices_PeriodLength}}" ) 
     63                PeriodLengthInMonths=$( echo ${config_UserChoices_PeriodLength} | awk -F '[mM]' '{print $1}' ) 
    5064                (( SECHIBA_WRITE_STEP = PeriodLengthInDays * WriteInMonths  * 86400 / PeriodLengthInMonths  )) 
    5165                ;; 
     
    6074            (( SECHIBA_WRITE_STEP = 86400 )) ;; 
    6175        *s) 
    62             WriteInSeconds=$( echo ${1} | awk -F '[s]' "{print ${config_SRF_WriteFrequency}}" ) 
     76            WriteInSeconds=$( echo ${SRF_WriteFrequency} | awk -F '[s]' '{print $1}' ) 
    6377            (( SECHIBA_WRITE_STEP = WriteInSeconds )) ;; 
    6478        *)  
    65             IGCM_debug_Exit "SRF_Update " ${config_SRF_WriteFrequency} " invalid WriteFrequency : choose in 1Y, 1M, 5D, 1D."  
     79            IGCM_debug_Exit "SRF_Update " ${SRF_WriteFrequency} " invalid WriteFrequency : choose in 1Y, 1M, 5D, 1D."  
    6680            IGCM_debug_Verif_Exit ;; 
    6781    esac 
  • CONFIG/IPSLCM/IPSLCM5A/piControl/COMP/stomate.driver

    r793 r1038  
    2525            PeriodLengthInYears=$( echo ${config_UserChoices_PeriodLength} | awk -F '[yY]' '{print $1}' ) 
    2626            (( STOMATE_WRITE_STEP = PeriodLengthInDays * WriteInYears / PeriodLengthInYears )) ;; 
     27        1M|1m)  
     28            case ${config_UserChoices_PeriodLength} in 
     29            *Y|*y) 
     30                STOMATE_WRITE_STEP=-1. 
     31                ;; 
     32            *M|*m) 
     33                STOMATE_WRITE_STEP=-1. 
     34                ;; 
     35            *) 
     36                (( STOMATE_WRITE_STEP = $( IGCM_date_DaysInMonth $year $month ) )) ;; 
     37            esac 
     38            ;; 
    2739        *M|*m)  
    2840            WriteInMonths=$( echo ${config_SBG_WriteFrequency} | awk -F '[mM]' '{print $1}' ) 
     
    3042            *Y|*y) 
    3143                PeriodLengthInYears=$( echo ${config_UserChoices_PeriodLength} | awk -F '[yY]' '{print $1}' ) 
    32                 (( STOMATE_WRITE_STEP = 30 )) ;; 
     44                (( STOMATE_WRITE_STEP = 30 )) 
     45                ;; 
    3346            *M|*m) 
    3447                PeriodLengthInMonths=$( echo ${config_UserChoices_PeriodLength} | awk -F '[mM]' '{print $1}' ) 
    35                 (( STOMATE_WRITE_STEP = PeriodLengthInDays * WriteInMonths / PeriodLengthInMonths )) ;; 
     48                (( STOMATE_WRITE_STEP = PeriodLengthInDays * WriteInMonths / PeriodLengthInMonths )) 
     49                ;; 
    3650            *) 
    3751                (( STOMATE_WRITE_STEP = $( IGCM_date_DaysInMonth $year $month ) )) ;; 
Note: See TracChangeset for help on using the changeset viewer.