Changeset 631


Ignore:
Timestamp:
06/03/09 10:53:17 (13 years ago)
Author:
omamce
Message:

OM : add treatment of frequency output in time step(s)

For instance : WriteFrequency = 1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CONFIG/IPSLCM/IPSLCM5/trunk/EXP00/COMP/opa9.driver

    r581 r631  
    6060 
    6161    ##--Write Frequency Purpose .... 
     62    # Frequency is : yY (year), mM (month), dD (day) or time step (no frequency name) 
    6263    frequency=$( echo ${config_OCE_WriteFrequency} | awk "-F " '{print $1}' ) 
    6364    factor=$( echo ${frequency} | sed -e "s/[yYmMdD]//" ) 
     
    8182            R_OUT_ICE_NWRITE=${R_OUT_ICE_O_D} ; 
    8283            WF1=${factor}D ;; 
    83         *) 
    84             (( ORCA_NWRITE = 0 ))                                                            ;; 
     84        *)      
     85            (( ORCA_NWRITE = factor ))  
     86            PREFIX_NWRITE=${config_UserChoices_JobName}_CU${factor} ; 
     87            R_OUT_OCE_NWRITE=${R_OUT_OCE_O_I} ; 
     88            R_OUT_ICE_NWRITE=${R_OUT_ICE_O_I} ; 
     89            WF1=CU${factor} ;;            
    8590    esac 
    8691 
     
    207212        # Prefix use in opa9.card AND in lim2.card : 
    208213        DATE_OPA=$( cat date.file | \ 
    209             sed "s/\ ${config_UserChoices_JobName}_[0-9]*[a-z]_\([0-9]*_[0-9]*\)_\ */\1/g" ) 
     214            sed "s/\ ${config_UserChoices_JobName}_[CU]*[0-9]*[a-z]*_\([0-9]*_[0-9]*\)_\ */\1/g" ) 
    210215        MainPrefix=${config_UserChoices_JobName}_1d_${DATE_OPA} 
    211216        SecondPrefix=${config_UserChoices_JobName}_5d_${DATE_OPA} 
Note: See TracChangeset for help on using the changeset viewer.