Ignore:
Timestamp:
11/23/09 17:42:56 (15 years ago)
Author:
mafoipsl
Message:

Use right calendar for oasis CPL.

File:
1 edited

Legend:

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

    r808 r811  
    4141    (( D_JOB_SEC = 3600 * 24 * PeriodLengthInDays )) 
    4242 
     43    # nleapy configuration 
     44    case ${config_UserChoices_CalendarType} in 
     45        leap|gregorian) 
     46            CPL_calendar=1;; 
     47        noleap) 
     48            CPL_calendar=0;; 
     49        360d) 
     50            CPL_calendar=30;; 
     51        *) 
     52            CPL_calendar=30 
     53    esac 
     54 
    4355    ############ Update Other Parameters  ############## 
    4456    ## Read Output_mode option in ${compname}.card --> Put "y" to have coupling variables in ouptut files 
     
    5466    ############ Update Parameter Files   ############## 
    5567    sed -e "s/<initial_date>/${PeriodDateBegin}/" \ 
     68        -e "s/<calendar_type>/${CPL_calendar}/" \ 
    5669        -e "s/<total_time>/${D_JOB_SEC}/" \ 
    5770        -e "s/<lib_mpi>/${LIBMPI}/" \ 
Note: See TracChangeset for help on using the changeset viewer.