New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 1623 – NEMO

Changeset 1623


Ignore:
Timestamp:
2009-08-14T14:29:51+02:00 (15 years ago)
Author:
flavoni
Message:

update namelist, card and driver , see ticket : #523

File:
1 edited

Legend:

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

    r1616 r1623  
    1212    ##--Variables used by OPA -- 
    1313 
    14     # cexper experience name for vairmer format 
    15     # nit000 number of the first time step 
    16     # nitend number of the last time step 
    17     # nleapy leap year calendar (0/1) (30 for 360d) 
    18     # nwrite frequency of OUTPUT file 
     14    # cn_exp experience name for vairmer format 
     15    # nn_it000 number of the first time step 
     16    # nn_itend number of the last time step 
     17    # nn_leapy leap year calendar (0/1) (30 for 360d) 
     18    # nn_write frequency of OUTPUT file 
    1919    # ln_rstart boolean term for restart (true or false) 
    20     # nstock frequency of restart file 
    21     # nrstdt control of the time step (0, 1 or 2) 
    22     # ndate0 initial calendar date aammjj 
    23     # nmsh  =1 create a mesh file (coordinates, scale factors, masks) 
    24     # nwrihf frequency of HF OUTPUT file 
    25     # rdt time step in seconds (coming from namelist) 
     20    # nn_stock frequency of restart file 
     21    # nn_rstctl control of the time step (0, 1 or 2) 
     22    # nn_date0 initial calendar date aammjj 
     23    # nn_msh  =1 create a mesh file (coordinates, scale factors, masks) 
     24    # rn_rdt time step in seconds (coming from namelist) 
    2625    # nf_ptr_wri frequency of zonal means and transport output 
    2726 
     
    3332 
    3433 
    35     PAT_CEXPER=$( supergrep cexper    ${SUBMIT_DIR}/PARAM/namelist ) 
    36     PAT_NIT000=$( supergrep nit000    ${SUBMIT_DIR}/PARAM/namelist ) 
    37     PAT_NITEND=$( supergrep nitend    ${SUBMIT_DIR}/PARAM/namelist ) 
    38     PAT_NLEAPY=$( supergrep nleapy    ${SUBMIT_DIR}/PARAM/namelist ) 
    39     PAT_NWRITE=$( supergrep nwrite    ${SUBMIT_DIR}/PARAM/namelist ) 
     34    PAT_CEXPER=$( supergrep cn_exp    ${SUBMIT_DIR}/PARAM/namelist ) 
     35    PAT_NIT000=$( supergrep nn_it000    ${SUBMIT_DIR}/PARAM/namelist ) 
     36    PAT_NITEND=$( supergrep nn_itend    ${SUBMIT_DIR}/PARAM/namelist ) 
     37    PAT_NLEAPY=$( supergrep nn_leapy    ${SUBMIT_DIR}/PARAM/namelist ) 
     38    PAT_NWRITE=$( supergrep nn_write    ${SUBMIT_DIR}/PARAM/namelist ) 
    4039    PAT_RESTAR=$( supergrep ln_rstart ${SUBMIT_DIR}/PARAM/namelist ) 
    41     PAT_NSTOCK=$( supergrep nstock    ${SUBMIT_DIR}/PARAM/namelist ) 
    42     PAT_NRSTAR=$( supergrep nrstdt    ${SUBMIT_DIR}/PARAM/namelist ) 
    43     PAT_NDATE0=$( supergrep ndate0    ${SUBMIT_DIR}/PARAM/namelist ) 
    44     PAT_NMSH=$(   supergrep nmsh      ${SUBMIT_DIR}/PARAM/namelist )  
     40    PAT_NSTOCK=$( supergrep nn_stock    ${SUBMIT_DIR}/PARAM/namelist ) 
     41    PAT_NRSTAR=$( supergrep nn_rstctl    ${SUBMIT_DIR}/PARAM/namelist ) 
     42    PAT_NDATE0=$( supergrep nn_date0    ${SUBMIT_DIR}/PARAM/namelist ) 
     43    PAT_NMSH=$(   supergrep nn_msh      ${SUBMIT_DIR}/PARAM/namelist )  
    4544    PAT_NF_PTR=$( supergrep nf_ptr_wri ${SUBMIT_DIR}/PARAM/namelist ) 
    4645     
    4746 
    48     OPA_RDT=$( supergrep rdt  ${SUBMIT_DIR}/PARAM/namelist | sed 's/ *rdt *=//' | sed 's/\. *,//' ) 
     47    OPA_RDT=$( supergrep rn_rdt  ${SUBMIT_DIR}/PARAM/namelist | sed 's/ *rn_rdt *=//' | sed 's/\. *,//' ) 
    4948 
    5049    # Period Length In Days between DateBegin and first day of calendar 0001 01 01 
     
    226225   NEMO_END=$( echo $( awk "BEGIN { printf \"%0${PRECIS}d\",${OPA_NITEND} }" ) )  
    227226 
    228     sed -e "s%${PAT_CEXPER}%       cexper=\"${config_UserChoices_JobName}\"%" \ 
    229    -e "s%${PAT_NIT000}%       nit000=${OPA_NIT000}%"                    \ 
    230    -e "s%${PAT_NITEND}%       nitend=${OPA_NITEND}%"                    \ 
    231    -e "s%${PAT_NWRITE}%       nwrite=${OPA_NWRITE}%"                    \ 
     227    sed -e "s%${PAT_CEXPER}%       cn_exp=\"${config_UserChoices_JobName}\"%" \ 
     228   -e "s%${PAT_NIT000}%       nn_it000=${OPA_NIT000}%"                    \ 
     229   -e "s%${PAT_NITEND}%       nn_itend=${OPA_NITEND}%"                    \ 
     230   -e "s%${PAT_NWRITE}%       nn_write=${OPA_NWRITE}%"                    \ 
    232231   -e "s%${PAT_RESTAR}%       ln_rstart=${OPA_LRSTAR}%"                 \ 
    233    -e "s%${PAT_NSTOCK}%       nstock=${OPA_NSTOCK}%"                    \ 
    234    -e "s%${PAT_NRSTAR}%       nrstdt=${OPA_NRSTDT}%"                    \ 
    235    -e "s%${PAT_NDATE0}%       ndate0=${PeriodDateBegin}%"                \ 
    236    -e "s%${PAT_NMSH}%         nmsh=${OPA_NMSH}%"                        \ 
    237    -e "s%${PAT_NLEAPY}%       nleapy=${OPA_NLEAPY}%"                \ 
     232   -e "s%${PAT_NSTOCK}%       nn_stock=${OPA_NSTOCK}%"                    \ 
     233   -e "s%${PAT_NRSTAR}%       nn_rstctl=${OPA_NRSTDT}%"                    \ 
     234   -e "s%${PAT_NDATE0}%       nn_date0=${PeriodDateBegin}%"                \ 
     235   -e "s%${PAT_NMSH}%         nn_msh=${OPA_NMSH}%"                        \ 
     236   -e "s%${PAT_NLEAPY}%       nn_leapy=${OPA_NLEAPY}%"                 \ 
    238237        -e "s%${PAT_NF_PTR}%       nf_ptr_wri=${OPA_NWRITE}%"                \ 
    239238   namelist > namelist.tmp 
Note: See TracChangeset for help on using the changeset viewer.