Changeset 1306


Ignore:
Timestamp:
2009-02-10T17:51:24+01:00 (12 years ago)
Author:
ctlod
Message:

libIGCM: update nemo.driver script to be able to manage leap years, see ticket: #330

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/libIGCM/ORCA2_LIM/IGCM00/COMP/nemo.driver

    r1216 r1306  
    1818    # nit000 number of the first time step 
    1919    # nitend number of the last time step 
     20############################################################ 
     21# Simona: ADDED nleapy corresponding to nbisex on opa.driver 
     22############################################################ 
     23    # nleapy leap year calendar (0/1) (30 for 360d) 
    2024    # nwrite frequency of OUTPUT file 
    2125    # ln_rstart boolean term for restart (true or false) 
     
    3438    PAT_NIT000=$( supergrep nit000    ${SUBMIT_DIR}/PARAM/namelist ) 
    3539    PAT_NITEND=$( supergrep nitend    ${SUBMIT_DIR}/PARAM/namelist ) 
     40    PAT_NLEAPY=$( supergrep nleapy    ${SUBMIT_DIR}/PARAM/namelist ) 
    3641    PAT_NWRITE=$( supergrep nwrite    ${SUBMIT_DIR}/PARAM/namelist ) 
    3742    PAT_RESTAR=$( supergrep ln_rstart ${SUBMIT_DIR}/PARAM/namelist ) 
     
    134139 
    135140    fi 
     141 
     142   case ${config_UserChoices_CalendarType} in 
     143         leap) 
     144               ORCA_NLEAPY=1;; 
     145         noleap) 
     146               ORCA_NLEAPY=0;; 
     147         360d) 
     148               ORCA_NLEAPY=30;; 
     149      esac 
     150 
     151 
    136152        typeset -r PRECIS=8 
    137153   NEMO_END=$( echo $( awk "BEGIN { printf \"%0${PRECIS}d\",${ORCA_NITEND} }" ) )  
     
    140156   -e "s%${PAT_NIT000}%       nit000=${ORCA_NIT000}%"                    \ 
    141157   -e "s%${PAT_NITEND}%       nitend=${ORCA_NITEND}%"                    \ 
     158   -e "s%${PAT_NLEAPY}%       nleapy=${ORCA_NLEAPY}%"               \ 
    142159   -e "s%${PAT_NWRITE}%       nwrite=${ORCA_NWRITE}%"                    \ 
    143160   -e "s%${PAT_RESTAR}%       ln_rstart=${ORCA_LRSTAR}%"                 \ 
Note: See TracChangeset for help on using the changeset viewer.