Changeset 800


Ignore:
Timestamp:
11/17/09 15:04:51 (14 years ago)
Author:
mafoipsl
Message:

opa9.driver modified to use iodef.xml files with all output frequencies set

File:
1 edited

Legend:

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

    r793 r800  
    221221    grep AUTO namelist 
    222222 
    223     ##--Variables used for iodef xml configuration file 
    224     # output_1m_frequency_oce : output frequency of ocean output files in seconds 
    225     #     - length of 1 month (in seconds)  
    226     #     - -1 for monthly mean with 31-28-31-30 .... calendar if 
    227     #          simulation are done per year. ie PeriodLength=1Y in config.card 
    228     #     - n days (in seconds) for other Period Length 
    229     #                            
    230  
    231     output_1m_frequency_oce=-1 
    232  
    233     case ${config_UserChoices_PeriodLength} in 
    234         *Y|*y) 
    235               (( output_1m_frequency_oce = 86400 * $( IGCM_date_DaysInMonth ${year} ${month} ) ))  
    236               if [ "${config_UserChoices_CalendarType}" != "360d" ] ; then 
    237                  output_1m_frequency_oce=-1 
    238                  echo "PeriodLength ${config_UserChoices_PeriodLength} and CalendarType ${config_UserChoices_CalendarType} are not working yet" 
    239                  exit 
    240               fi 
    241               ;; 
    242         *M|*m) 
    243               (( output_1m_frequency_oce = 86400 * $( IGCM_date_DaysInMonth ${year} ${month} ) )) 
    244               ;; 
    245         *) 
    246               (( output_1m_frequency_oce = PeriodLengthInDays * 86400 )) ;; 
    247     esac 
    248  
    249     echo 1M_Frequency in iodef : ${output_1m_frequency_oce} 
    250  
    251223    # update iodef.xml 
    252224 
     
    255227        -e "s/<1M_ENABLE>/${V1M_ENABLE}/" \ 
    256228        -e "s/<1Y_ENABLE>/${V1Y_ENABLE}/" \ 
    257         -e "s/<1M_FREQUENCY>/${output_1m_frequency_oce}/g" \ 
    258229        iodef.xml > iodef.xml.tmp 
    259230 
Note: See TracChangeset for help on using the changeset viewer.