Ignore:
Timestamp:
08/14/09 14:19:37 (15 years ago)
Author:
mafoipsl
Message:

Adapt namelist[_ice], opa9.driver and BB_make to NEMO v3_2 beta

File:
1 edited

Legend:

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

    r697 r705  
    1717    ##--Variables used by OPA -- 
    1818 
    19     # cexper experience name for vairmer format 
    20     # ln_rstart boolean term for restart (true or false) 
    21     # nrstdt control of the time step (0, 1 or 2) 
    22     # nit000 number of the first time step 
    23     # nitend number of the last time step 
    24     # ndate0 initial calendar date aammjj 
    25     # nleapy Leap year calendar (1) or not (0), or 360 days calendar (30) 
    26     # nstock frequency of restart file 
    27     # nwrite frequency of OUTPUT file 
    28     # nmsh  =1 create a mesh file (coordinates, scale factors, masks) 
    29     # nwrihf frequency of HF OUTPUT file 
    30     # rdt time step in seconds (coming from namelist) 
     19    # cn_exp    experience name 
     20    # nn_it000  number of the first time step 
     21    # nn_itend  number of the last time step 
     22    # nn_date0  initial calendar date yymmdd (used if  nn_rstctl=1) 
     23    # nn_leapy  Leap year calendar (1) or not (0), or 360 days calendar (30) 
     24    # nn_stock  frequency of creation of a restart file (modulo referenced to 1) 
     25    # nn_write  frequency of write in the output file   (modulo referenced to nn_it000) 
     26    # ln_rstart start from rest (F) or from a restart file (T) 
     27    # nn_rstctl restart control = 0 nn_it000 is not compared to the restart file value 
     28    #                           = 1 use nn_date0 in namelist (not the value in the restart file) 
     29    #                           = 2 calendar parameters read in the restart file 
     30    # nn_msh    =1 create a mesh file (coordinates, scale factors, masks) 
     31    # rn_rdt    time step in seconds for the dynamics (and tracer if nacc=0)   ==> 5760 (coming from namelist) 
     32    # nn_prg    time-step frequency of gap print in model output 
    3133    # nf_ptr_wri frequency of zonal means and transport output 
    3234 
    33     PAT_CEXPER=$( supergrep cexper     ${SUBMIT_DIR}/PARAM/namelist_${RESOL_OCE} ) 
    34     PAT_NIT000=$( supergrep nit000     ${SUBMIT_DIR}/PARAM/namelist_${RESOL_OCE} ) 
    35     PAT_NITEND=$( supergrep nitend     ${SUBMIT_DIR}/PARAM/namelist_${RESOL_OCE} ) 
    36     PAT_NWRITE=$( supergrep nwrite     ${SUBMIT_DIR}/PARAM/namelist_${RESOL_OCE} ) 
     35    PAT_CEXPER=$( supergrep cn_exp     ${SUBMIT_DIR}/PARAM/namelist_${RESOL_OCE} ) 
     36    PAT_NIT000=$( supergrep nn_it000   ${SUBMIT_DIR}/PARAM/namelist_${RESOL_OCE} ) 
     37    PAT_NITEND=$( supergrep nn_itend   ${SUBMIT_DIR}/PARAM/namelist_${RESOL_OCE} ) 
     38    PAT_NDATE0=$( supergrep nn_date0   ${SUBMIT_DIR}/PARAM/namelist_${RESOL_OCE} ) 
     39    PAT_NLEAPY=$( supergrep nn_leapy   ${SUBMIT_DIR}/PARAM/namelist_${RESOL_OCE} ) 
     40    PAT_NSTOCK=$( supergrep nn_stock   ${SUBMIT_DIR}/PARAM/namelist_${RESOL_OCE} ) 
     41    PAT_NWRITE=$( supergrep nn_write   ${SUBMIT_DIR}/PARAM/namelist_${RESOL_OCE} ) 
     42    PAT_RESTAR=$( supergrep ln_rstart  ${SUBMIT_DIR}/PARAM/namelist_${RESOL_OCE} ) 
     43    PAT_NRSTAR=$( supergrep nn_rstctl  ${SUBMIT_DIR}/PARAM/namelist_${RESOL_OCE} ) 
     44    PAT_NMSH=$(   supergrep nn_msh     ${SUBMIT_DIR}/PARAM/namelist_${RESOL_OCE} ) 
     45    PAT_PRG=$(    supergrep nn_prg ${SUBMIT_DIR}/PARAM/namelist_${RESOL_OCE} ) 
    3746    PAT_NF_PTR=$( supergrep nf_ptr_wri ${SUBMIT_DIR}/PARAM/namelist_${RESOL_OCE} ) 
    38     PAT_RESTAR=$( supergrep ln_rstart  ${SUBMIT_DIR}/PARAM/namelist_${RESOL_OCE} ) 
    39     PAT_NSTOCK=$( supergrep nstock     ${SUBMIT_DIR}/PARAM/namelist_${RESOL_OCE} ) 
    40     PAT_NRSTAR=$( supergrep nrstdt     ${SUBMIT_DIR}/PARAM/namelist_${RESOL_OCE} ) 
    41     PAT_NDATE0=$( supergrep ndate0     ${SUBMIT_DIR}/PARAM/namelist_${RESOL_OCE} ) 
    42     PAT_NLEAPY=$( supergrep nleapy     ${SUBMIT_DIR}/PARAM/namelist_${RESOL_OCE} ) 
    43     PAT_NMSH=$(   supergrep nmsh       ${SUBMIT_DIR}/PARAM/namelist_${RESOL_OCE} ) 
    44  
    45     ORCA_RDT=$( supergrep rdt  ${SUBMIT_DIR}/PARAM/namelist_${RESOL_OCE} | sed 's/ *rdt *=//' | sed 's/\. *//' ) 
     47 
     48    ORCA_RDT=$( supergrep rn_rdt  ${SUBMIT_DIR}/PARAM/namelist_${RESOL_OCE} | sed 's/ *rdt *=//' | sed 's/\. *//' ) 
    4649 
    4750    # Period Length In Days between DateBegin and first day of calendar 0001 01 01 
     
    168171 
    169172 
    170     sed -e "s/${PAT_CEXPER}/       cexper=\"${config_UserChoices_JobName}\"/" \ 
    171         -e "s/${PAT_NIT000}/       nit000=${ORCA_NIT000}/"                    \ 
    172         -e "s/${PAT_NITEND}/       nitend=${ORCA_NITEND}/"                    \ 
    173         -e "s/${PAT_NWRITE}/       nwrite=${ORCA_NWRITE}/"                    \ 
     173    sed -e "s/${PAT_CEXPER}/       cn_exp=\"${config_UserChoices_JobName}\"/" \ 
     174        -e "s/${PAT_NIT000}/       nn_it000=${ORCA_NIT000}/"                    \ 
     175        -e "s/${PAT_NITEND}/       nn_itend=${ORCA_NITEND}/"                    \ 
     176        -e "s/${PAT_NDATE0}/       nn_date0=${PeriodDateBegin}/"                \ 
     177        -e "s%${PAT_NLEAPY}%       nn_leapy=${ORCA_NLEAPY}%"                    \ 
     178        -e "s/${PAT_NSTOCK}/       nn_stock=${ORCA_NSTOCK}/"                    \ 
     179        -e "s/${PAT_NWRITE}/       nn_write=${ORCA_NWRITE}/"                    \ 
    174180        -e "s/${PAT_RESTAR}/       ln_rstart=${ORCA_LRSTAR}/"                 \ 
    175         -e "s/${PAT_NPRG}/         nprg=${ORCA_NWRITE}/"                      \ 
     181        -e "s/${PAT_NRSTAR}/       nn_rstctl=${ORCA_NRSTDT}/"                    \ 
     182        -e "s/${PAT_NMSH}/         nn_msh=${ORCA_NMSH}/"                        \ 
     183        -e "s/${PAT_NPRG}/         nn_prg=${ORCA_NWRITE}/"                      \ 
    176184        -e "s/${PAT_NF_PTR}/       nf_ptr_wri=${ORCA_NWRITE}/"                \ 
    177         -e "s/${PAT_NSTOCK}/       nstock=${ORCA_NSTOCK}/"                    \ 
    178         -e "s/${PAT_NRSTAR}/       nrstdt=${ORCA_NRSTDT}/"                    \ 
    179         -e "s/${PAT_NDATE0}/       ndate0=${PeriodDateBegin}/"                \ 
    180         -e "s%${PAT_NLEAPY}%       nleapy=${ORCA_NLEAPY}%"                    \ 
    181         -e "s/${PAT_NMSH}/         nmsh=${ORCA_NMSH}/"                        \ 
    182185        namelist > namelist.tmp 
    183186 
Note: See TracChangeset for help on using the changeset viewer.