Ignore:
Timestamp:
10/01/07 16:03:44 (17 years ago)
Author:
sdipsl
Message:

Modifications :

  • Better output frequency and output name management for OPA-LIM
File:
1 edited

Legend:

Unmodified
Added
Removed
  • CONFIG/trunk/IPSLCM4_v2/EXP00/COMP/opa.driver

    r154 r155  
    6464    ##--Write Frequency Purpose .... 
    6565    frequency=$( echo ${config_OCE_WriteFrequency} | awk "-F " '{print $1}' ) 
    66  
     66    factor=$( echo ${frequency} | sed -e "s/[yYmMdD]//" ) 
    6767    case ${frequency} in 
    6868        1Y|1y) 
    69             (( ORCA_NWRITE = ORCA_NPDT_JOUR * $( IGCM_date_DaysInYear  ${year} ) ))          ; 
    70             PREFIX_OPA=${config_UserChoices_JobName}_1y ;; 
     69            (( ORCA_NWRITE = ORCA_NPDT_JOUR * factor * $( IGCM_date_DaysInYear  ${year} ) ))          ; 
     70            PREFIX_NWRITE=${config_UserChoices_JobName}_${factor}y ; 
     71            R_OUT_OCE_NWRITE=${R_OUT_OCE_O_Y} ; 
     72            R_OUT_ICE_NWRITE=${R_OUT_ICE_O_Y} ; 
     73            WF1=${factor}Y ;; 
    7174        1M|1m) 
    72             (( ORCA_NWRITE = ORCA_NPDT_JOUR * $( IGCM_date_DaysInMonth ${year} ${month} ) )) ; 
    73             PREFIX_OPA=${config_UserChoices_JobName}_1m ;; 
     75            (( ORCA_NWRITE = ORCA_NPDT_JOUR * factor * $( IGCM_date_DaysInMonth ${year} ${month} ) )) ; 
     76            PREFIX_NWRITE=${config_UserChoices_JobName}_${factor}m ; 
     77            R_OUT_OCE_NWRITE=${R_OUT_OCE_O_M} ; 
     78            R_OUT_ICE_NWRITE=${R_OUT_ICE_O_M} ; 
     79            WF1=${factor}M ;; 
    7480        *D|*d) 
    75             (( ORCA_NWRITE = ORCA_NPDT_JOUR * $( echo ${frequency} | sed -e "s/[dD]//" ) ))  ; 
    76             PREFIX_OPA=${config_UserChoices_JobName}_$( echo ${frequency} | sed -e "s/[dD]//" )d ;; 
     81            (( ORCA_NWRITE = ORCA_NPDT_JOUR * factor  ))  ; 
     82            PREFIX_NWRITE=${config_UserChoices_JobName}_${factor}d ; 
     83            R_OUT_OCE_NWRITE=${R_OUT_OCE_O_D} ; 
     84            R_OUT_ICE_NWRITE=${R_OUT_ICE_O_D} ; 
     85            WF1=${factor}D ;; 
    7786        *) 
    7887            (( ORCA_NWRITE = 0 ))                                                            ;; 
     
    8291    if [ ${NbFreq} -eq 2 ] ; then 
    8392        frequency=$( echo ${config_OCE_WriteFrequency} | awk "-F " '{print $2}' ) 
     93        factor=$( echo ${frequency} | sed -e "s/[yYmMdD]//" ) 
    8494        case ${frequency} in 
    85             1Y|1y) 
    86                 (( ORCA_NWRIHF = ORCA_NPDT_JOUR * $( IGCM_date_DaysInYear  ${year} ) ))          ; 
    87                 PREFIX_HF=${config_UserChoices_JobName}_1y ;; 
    88             1M|1m) 
    89                 (( ORCA_NWRIHF = ORCA_NPDT_JOUR * $( IGCM_date_DaysInMonth ${year} ${month} ) )) ; 
    90                 PREFIX_HF=${config_UserChoices_JobName}_1m ;; 
     95            *Y|*y) 
     96                (( ORCA_NWRIHF = ORCA_NPDT_JOUR * factor * $( IGCM_date_DaysInYear  ${year} ) ))          ; 
     97                PREFIX_NWRIHF=${config_UserChoices_JobName}_${factor}y ; 
     98                R_OUT_OCE_NWRIHF=${R_OUT_OCE_O_Y} ; 
     99                WF2=${factor}Y ;; 
     100            *M|*m) 
     101                (( ORCA_NWRIHF = ORCA_NPDT_JOUR * factor * $( IGCM_date_DaysInMonth ${year} ${month} ) )) ; 
     102                PREFIX_NWRIHF=${config_UserChoices_JobName}_${factor}m ; 
     103                R_OUT_OCE_NWRIHF=${R_OUT_OCE_O_M} ; 
     104                WF2=${factor}M ;; 
    91105            *D|*d) 
    92                 (( ORCA_NWRIHF = ORCA_NPDT_JOUR * $( echo ${frequency} | sed -e "s/[dD]//" ) ))  ; 
    93                 PREFIX_HF=${config_UserChoices_JobName}_$( echo ${frequency} | sed -e "s/[dD]//" )d ;; 
     106                (( ORCA_NWRIHF = ORCA_NPDT_JOUR * factor ))  ; 
     107                PREFIX_NWRIHF=${config_UserChoices_JobName}_${factor}d ; 
     108                R_OUT_OCE_NWRIHF=${R_OUT_OCE_O_D} ; 
     109                WF2=${factor}D ;; 
    94110            *) 
    95111                (( ORCA_NWRIHF = 0 ))                                                            ;; 
Note: See TracChangeset for help on using the changeset viewer.