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 1764 for trunk/CONFIG/ORCA2_LIM_PISCES/IGCM00/COMP – NEMO

Ignore:
Timestamp:
2009-11-25T17:05:52+01:00 (15 years ago)
Author:
cetlod
Message:

Update namelists, card & drivers for standard config, see ticket:615

Location:
trunk/CONFIG/ORCA2_LIM_PISCES/IGCM00/COMP
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/CONFIG/ORCA2_LIM_PISCES/IGCM00/COMP/lim2.card

    r1379 r1764  
    2121 
    2222[OutputFiles] 
    23 List=   (${PREFIX_NWRITE}_${DATE_OPA}_icemod.nc, ${R_OUT_ICE_NWRITE}/${PREFIX}_${WF1}_icemod.nc, Post_1M_icemod) 
     23List=   (${PREFIX_WFI1}_icemod.nc, ${R_OUT_ICE_WFI1}/${PREFIX}_${WFI1}_icemod.nc, Post_5D_icemod) 
    2424 
    2525[Post_1M_icemod] 
    2626Patches = () 
    27 GatherWithInternal = (nav_lon, nav_lat, deptht, time_counter) 
     27GatherWithInternal = (nav_lon, nav_lat, time_counter) 
    2828TimeSeriesVars = (iicethic, ileadfra, isnowthi, iicevelu, iicevelv) 
  • trunk/CONFIG/ORCA2_LIM_PISCES/IGCM00/COMP/lim2.driver

    r1379 r1764  
    1616    IGCM_debug_PushStack "ICE_Update" 
    1717 
     18    NbFreq=$( echo ${config_ICE_WriteFrequency} | wc -w ) 
     19 
     20    ##--Write Frequency Purpose .... 
     21    typeset -Z1 i=1 
     22    while [ $i -le ${NbFreq} ]; do 
     23        frequency=$( echo ${config_ICE_WriteFrequency} | awk -v var="$i" "-F " '{print $var}' ) 
     24        factor=$( echo ${frequency} | sed -e "s/[yYmMdD]//" ) 
     25        case ${frequency} in 
     26            *Y|*y) 
     27                eval PREFIX_WFI${i}=${config_UserChoices_JobName}_${factor}y_${DatesPeriod} ; 
     28                eval R_OUT_ICE_WFI${i}=${R_OUT_ICE_O_Y} ; 
     29                eval WFI${i}=${factor}Y ;; 
     30            *M|*m) 
     31                eval PREFIX_WFI${i}=${config_UserChoices_JobName}_${factor}m_${DatesPeriod} ; 
     32                eval R_OUT_ICE_WFI${i}=${R_OUT_ICE_O_M} ; 
     33                eval WFI${i}=${factor}M ;; 
     34            *D|*d) 
     35                eval PREFIX_WFI${i}=${config_UserChoices_JobName}_${factor}d_${DatesPeriod} ; 
     36                eval R_OUT_ICE_WFI${i}=${R_OUT_ICE_O_D} ; 
     37                eval WFI${i}=${factor}D ;; 
     38            *) 
     39        esac 
     40        let i=$i+1 
     41 
     42    done 
    1843    echo UPDATE ICE !!! 
    1944 
  • trunk/CONFIG/ORCA2_LIM_PISCES/IGCM00/COMP/opa9.card

    r1631 r1764  
    66#============================================================== 
    77#-- Name of directory for COMMON ACCOUNT at idris or CCRT 
    8 #-- available directories are:  v3, v3_1 
    9 #-- related to NEMO_tag_revision (nemo_v3, nemo_v3_1) 
     8#-- available directories are:  v3, v3_1, v3_2 
     9#-- related to NEMO_tag_revision (nemo_v3, nemo_v3_1, nemo_v3_2_beta) 
    1010#-- NOTE: if you use your own directory you have to comment it 
    11 OPA_version=v3_1 
     11OPA_version=v3_2 
    1212#============================================================== 
    1313 
    14 #-- if you run interannual is "y", if not is "n" 
     14#=================================== 
     15#-- Use (y) or not (n) of io_server 
     16io_server=n 
     17#=================================== 
     18 
     19#-- if you run interannual is "y", if not (=climatology) is "n" 
    1520Interannual_Run=n 
    1621 
     
    2429#-- MANDATORY: NAMES USED IN List_jobsbc VARIABLE MUST BE ONLY THE BASENAME 
    2530 
    26 List_jobsbc=(taux_1m, tauy_1m, flx) 
     31# default climatology, bulk_clio:  
     32List_jobsbc=(flx, taux_1m, tauy_1m) 
     33# example for interannual, bulk core: 
     34#List_jobsbc=(radlw_DFS4-ORCA2, radsw_DFS4-ORCA2, q2_DFS4-ORCA2, t2_DFS4-ORCA2, u10_DFS4-ORCA2, v10_DFS4-ORCA2, snow_DFS4-ORCA2, precip_DFS4-ORCA2) 
    2735 
    2836#========================================================================================== 
     
    3341#-- 2) leave List_runsbc empty so NEMO will read file names specified in List_jobsbc variable above 
    3442 
     43# default climatology, bulk_clio:  
    3544List_runsbc=() 
     45# example for interannual, bulk core: 
     46#List_runsbc=(qlw_core, qsw_core, q2_core, t2_core, u10_core, v10_core, snow_core, precip_core) 
    3647 
    3748[InitialStateFiles] 
     
    5364            (${R_BC}/OCE/${config_UserChoices_TagName}/${opa9_UserChoices_OPA_version}/subbasins.nc, .) 
    5465 
     66 
    5567[ParametersFiles] 
    56 List= (${SUBMIT_DIR}/PARAM/namelist, namelist) 
     68List= (${SUBMIT_DIR}/PARAM/namelist,         namelist), \ 
     69   (${SUBMIT_DIR}/PARAM/iodef.xml,        iodef.xml),      \ 
     70        (${SUBMIT_DIR}/PARAM/xmlio_server.def, xmlio_server.def) 
    5771 
    5872[RestartFiles] 
     
    6074 
    6175[OutputText] 
    62 List=   (ocean.output, solver.stat, STRAIT.dat) 
     76List=   (ocean.output, solver.stat, STRAIT.dat, out_nemo) 
    6377 
    6478[OutputFiles] 
    65 List=   (${PREFIX_NWRITE}_${DATE_OPA}_grid_T.nc, ${R_OUT_OCE_NWRITE}/${PREFIX}_${WF1}_grid_T.nc, Post_1M_grid_T),\ 
    66         (${PREFIX_NWRITE}_${DATE_OPA}_grid_U.nc, ${R_OUT_OCE_NWRITE}/${PREFIX}_${WF1}_grid_U.nc, Post_1M_grid_U) ,\ 
    67         (${PREFIX_NWRITE}_${DATE_OPA}_grid_V.nc, ${R_OUT_OCE_NWRITE}/${PREFIX}_${WF1}_grid_V.nc, Post_1M_grid_V),\ 
    68         (${PREFIX_NWRITE}_${DATE_OPA}_grid_W.nc, ${R_OUT_OCE_NWRITE}/${PREFIX}_${WF1}_grid_W.nc, Post_1M_grid_W),\ 
    69         (damping.coeff.nc , ${R_OUT_OCE_NWRITE}/${PREFIX}_damping.coeff.nc, NONE),\ 
    70         (mesh_mask.nc     , ${R_OUT_OCE_O}/${config_UserChoices_JobName}_mesh_mask.nc, NONE),\ 
    71         (output.abort.nc  , ${R_OUT_OCE_D}/${PREFIX}_output.abort.nc, NONE),\ 
    72         (output.init.nc   , ${R_OUT_OCE_O_I}/${config_UserChoices_JobName}_${PeriodDateBegin}_output.init.nc, NONE) 
     79List=   (${PREFIX_WF1}_grid_T.nc,         ${R_OUT_OCE_WF1}/${PREFIX}_${WF1}_grid_T.nc,               Post_1Y_grid_T),\ 
     80        (${PREFIX_WF2}_grid_T.nc,         ${R_OUT_OCE_WF2}/${PREFIX}_${WF2}_grid_T.nc,               Post_1M_grid_T),\ 
     81        (${PREFIX_WF3}_grid_T.nc,         ${R_OUT_OCE_WF3}/${PREFIX}_${WF3}_grid_T.nc,               Post_5D_grid_T),\ 
     82        (${PREFIX_WF3}_grid_U.nc,         ${R_OUT_OCE_WF3}/${PREFIX}_${WF3}_grid_U.nc,               Post_5D_grid_U) ,\ 
     83        (${PREFIX_WF3}_grid_V.nc,         ${R_OUT_OCE_WF3}/${PREFIX}_${WF3}_grid_V.nc,               Post_5D_grid_V),\ 
     84        (${PREFIX_WF3}_grid_W.nc,         ${R_OUT_OCE_WF3}/${PREFIX}_${WF3}_grid_W.nc,               Post_5D_grid_W),\ 
     85        (${PREFIX_WF4}_grid_T_0n180w.nc,  ${R_OUT_OCE_WF4}/${PREFIX}_${WF4}_grid_T_0n180w.nc,        NONE ),\ 
     86        (${PREFIX_WF4}_grid_T_Eq.nc,      ${R_OUT_OCE_WF4}/${PREFIX}_${WF4}_grid_T_Eq.nc,            NONE ),\ 
     87        (${PREFIX_WF4}_diaptr.nc,         ${R_OUT_OCE_WF4}/${PREFIX}_${WF4}_diaptr.nc,               Post_1D_diaptr),\ 
     88        (mesh_mask.nc     ,               ${R_OUT_OCE_O}/${config_UserChoices_JobName}_mesh_mask.nc, NONE),\ 
     89        (output.abort.nc  ,               ${R_OUT_OCE_D}/${PREFIX}_output.abort.nc,                  NONE),\ 
     90        (output.init.nc   ,               ${R_OUT_OCE_O_I}/${config_UserChoices_JobName}_${PeriodDateBegin}_output.init.nc, NONE) 
    7391 
    7492 
    7593[Post_1M_grid_T] 
    76 Patches = () 
     94Patches = (Patch_20091030_histcom_time_axis) 
    7795GatherWithInternal = (nav_lon, nav_lat, deptht, time_counter) 
    7896TimeSeriesVars = (sohtc300, sohefldo, soicecov, somxl010, sosaline, sossheig, sosstsst, sowaflcd, sowaflup) 
    7997 
    80 [Post_1M_grid_U] 
    81 Patches = () 
     98[Post_1Y_grid_T] 
     99Patches = (Patch_20091030_histcom_time_axis) 
     100GatherWithInternal = (nav_lon, nav_lat, deptht, time_counter) 
     101TimeSeriesVars = (sohtc300, sohefldo, soicecov, somxl010, sosaline, sossheig, sosstsst, sowaflcd, sowaflup) 
     102 
     103[Post_5D_grid_T] 
     104Patches = (Patch_20091030_histcom_time_axis) 
     105GatherWithInternal = (nav_lon, nav_lat, deptht, time_counter) 
     106TimeSeriesVars = (sohtc300, sohefldo, soicecov, somxl010, sosaline, sossheig, sosstsst, sowaflcd, sowaflup) 
     107 
     108[Post_5D_grid_U] 
     109Patches = (Patch_20091030_histcom_time_axis) 
    82110GatherWithInternal = (nav_lon, nav_lat, depthu, time_counter) 
    83111TimeSeriesVars = (sozotaux) 
    84112 
    85 [Post_1M_grid_V] 
    86 Patches = () 
     113[Post_5D_grid_V] 
     114Patches = (Patch_20091030_histcom_time_axis) 
    87115GatherWithInternal = (nav_lon, nav_lat, depthv, time_counter) 
    88116TimeSeriesVars = (sometauy) 
    89117 
    90 [Post_1M_grid_W] 
    91 Patches = () 
     118[Post_5D_grid_W] 
     119Patches = (Patch_20091030_histcom_time_axis) 
    92120GatherWithInternal = (nav_lon, nav_lat, depthw, time_counter) 
    93121TimeSeriesVars = 
     122 
     123[Post_1D_diaptr] 
     124Patches = () 
     125GatherWithInternal = (lat, deptht, depthw, time_counter) 
     126TimeSeriesVars = (zotemglo, zosalglo, zomsfglo, zotematl, zosalatl, zomsfatl, zotempac, zosalpac, zomsfpac, zotemind, zosalind, zomsfind, zotemipc, zosalipc, zomsfipc, sohtatl, sostatl, sohtpac, sostpac, sohtind, sostind, sohtipc, sostipc, sophtadv, sophtove, sophtldf, sopstadv, sopstove, zomsfeiv, sophteiv, sopsteiv) 
     127 
     128[Post_time] 
     129Patches = (Patch_20091030_histcom_time_axis) 
     130GatherWithInternal = 
     131TimeSeriesVars = 
     132 
  • trunk/CONFIG/ORCA2_LIM_PISCES/IGCM00/COMP/opa9.driver

    r1631 r1764  
    3636    PAT_NITEND=$( supergrep nn_itend    ${SUBMIT_DIR}/PARAM/namelist ) 
    3737    PAT_NLEAPY=$( supergrep nn_leapy    ${SUBMIT_DIR}/PARAM/namelist ) 
    38     PAT_NWRITE=$( supergrep nn_write    ${SUBMIT_DIR}/PARAM/namelist ) 
    3938    PAT_RESTAR=$( supergrep ln_rstart ${SUBMIT_DIR}/PARAM/namelist ) 
    4039    PAT_NSTOCK=$( supergrep nn_stock    ${SUBMIT_DIR}/PARAM/namelist ) 
     
    4241    PAT_NDATE0=$( supergrep nn_date0    ${SUBMIT_DIR}/PARAM/namelist ) 
    4342    PAT_NMSH=$(   supergrep nn_msh      ${SUBMIT_DIR}/PARAM/namelist )  
    44     PAT_NF_PTR=$( supergrep nf_ptr_wri ${SUBMIT_DIR}/PARAM/namelist ) 
    4543     
    4644 
     
    5755        set -A ListFormulationRunsbc -- \${opa9_Interannual_Listrunsbc${opa9_Interannual_List_runsbc}[*]} 
    5856 
     57    ##--Variables used for XMLIO_SERVER configuration file 
     58       # using_server: .TRUE.(.FALSE.) to use(bypass) the io_server 
     59       PAT_SERVER=$( supergrep using_server ${SUBMIT_DIR}/PARAM/xmlio_server.def ) 
     60    
    5961    IGCM_debug_PopStack "OCE_Initialize" 
    6062} 
     
    138140 
    139141    ##--Write Frequency Purpose .... 
    140     frequency=$( echo ${config_OCE_WriteFrequency} | awk "-F " '{print $1}' ) 
    141     factor=$( echo ${frequency} | sed -e "s/[yYmMdD]//" ) 
    142     case ${frequency} in 
    143    1Y|1y) 
    144        (( OPA_NWRITE = OPA_NDT_DAY * factor * $( IGCM_date_DaysInYear  ${year} ) ))          ; 
    145        PREFIX_NWRITE=${config_UserChoices_JobName}_${factor}y ; 
    146        R_OUT_OCE_NWRITE=${R_OUT_OCE_O_Y} ; 
    147        R_OUT_ICE_NWRITE=${R_OUT_ICE_O_Y} ; 
    148        WF1=${factor}Y ;; 
    149    1M|1m) 
    150        (( OPA_NWRITE = OPA_NDT_DAY * factor * $( IGCM_date_DaysInMonth ${year} ${month} ) )) ; 
    151        PREFIX_NWRITE=${config_UserChoices_JobName}_${factor}m ; 
    152        R_OUT_OCE_NWRITE=${R_OUT_OCE_O_M} ; 
    153        R_OUT_ICE_NWRITE=${R_OUT_ICE_O_M} ; 
    154        WF1=${factor}M ;; 
    155    *D|*d) 
    156        (( OPA_NWRITE = OPA_NDT_DAY * factor  ))  ; 
    157        PREFIX_NWRITE=${config_UserChoices_JobName}_${factor}d ; 
    158        R_OUT_OCE_NWRITE=${R_OUT_OCE_O_D} ; 
    159        R_OUT_ICE_NWRITE=${R_OUT_ICE_O_D} ; 
    160        WF1=${factor}D ;; 
    161    *) 
    162        (( OPA_NWRITE = 0 ))                                                            ;; 
    163     esac 
    164  
     142    typeset -Z1 i=1 
     143    while [ $i -le ${NbFreq} ]; do 
     144        frequency=$( echo ${config_OCE_WriteFrequency} | awk -v var="$i" "-F " '{print $var}' ) 
     145      factor=$( echo ${frequency} | sed -e "s/[yYmMdD]//" ) 
     146      case ${frequency} in 
     147          *Y|*y) 
     148              eval PREFIX_WF${i}=${config_UserChoices_JobName}_${factor}y_${DatesPeriod} ; 
     149              eval R_OUT_OCE_WF${i}=${R_OUT_OCE_O_Y} ; 
     150              eval WF${i}=${factor}Y ;; 
     151          *M|*m) 
     152              eval PREFIX_WF${i}=${config_UserChoices_JobName}_${factor}m_${DatesPeriod} ; 
     153              eval R_OUT_OCE_WF${i}=${R_OUT_OCE_O_M} ; 
     154              eval WF${i}=${factor}M ;; 
     155          *D|*d) 
     156              eval PREFIX_WF${i}=${config_UserChoices_JobName}_${factor}d_${DatesPeriod} ; 
     157              eval R_OUT_OCE_WF${i}=${R_OUT_OCE_O_D} ; 
     158              eval WF${i}=${factor}D ;; 
     159          *) 
     160      esac 
     161        let i=$i+1 
     162 
     163    done 
    165164    # Period Length In Days between DateBegin and first day of calendar 0001 01 01 
    166165    # Needed by OPA namelist to compute correct file names  
     
    228227   -e "s%${PAT_NIT000}%       nn_it000=${OPA_NIT000}%"                    \ 
    229228   -e "s%${PAT_NITEND}%       nn_itend=${OPA_NITEND}%"                    \ 
    230    -e "s%${PAT_NWRITE}%       nn_write=${OPA_NWRITE}%"                    \ 
    231229   -e "s%${PAT_RESTAR}%       ln_rstart=${OPA_LRSTAR}%"                 \ 
    232230   -e "s%${PAT_NSTOCK}%       nn_stock=${OPA_NSTOCK}%"                    \ 
     
    235233   -e "s%${PAT_NMSH}%         nn_msh=${OPA_NMSH}%"                        \ 
    236234   -e "s%${PAT_NLEAPY}%       nn_leapy=${OPA_NLEAPY}%"                 \ 
    237         -e "s%${PAT_NF_PTR}%       nf_ptr_wri=${OPA_NWRITE}%"                \ 
    238235   namelist > namelist.tmp 
    239236 
    240237    IGCM_sys_Mv namelist.tmp namelist 
    241238 
    242     echo 'Variables automatically updated in namelists' 
    243     grep AUTO namelist* 
    244  
     239    # update xmlio_server.def 
     240 
     241    if [ X${opa9_UserChoices_io_server} = Xy ] ; then 
     242        sed -e "s/${PAT_SERVER}/  using_server = .TRUE./" \ 
     243        xmlio_server.def > xmlio_server.def.tmp 
     244        IGCM_sys_Mv xmlio_server.def.tmp xmlio_server.def 
     245    fi 
     246    
    245247    IGCM_debug_PopStack "OCE_Update" 
    246248} 
  • trunk/CONFIG/ORCA2_LIM_PISCES/IGCM00/COMP/pisces.card

    r1652 r1764  
    1414            (${R_BC}/OCE/${config_UserChoices_TagName}/${opa9_UserChoices_OPA_version}/data_1m_NO3_nomask.nc, .), \ 
    1515            (${R_BC}/OCE/${config_UserChoices_TagName}/${opa9_UserChoices_OPA_version}/data_1m_PO4_nomask.nc, .), \ 
    16             (${R_BC}/OCE/${config_UserChoices_TagName}/${opa9_UserChoices_OPA_version}/data_1m_Si_nomask.nc, .), \ 
     16            (${R_BC}/OCE/${config_UserChoices_TagName}/${opa9_UserChoices_OPA_version}/data_1m_Si_nomask.nc,  .), \ 
    1717            (${R_BC}/OCE/${config_UserChoices_TagName}/${opa9_UserChoices_OPA_version}/data_1m_DOC_nomask.nc, .), \ 
    1818            (${R_BC}/OCE/${config_UserChoices_TagName}/${opa9_UserChoices_OPA_version}/data_1m_Fer_nomask.nc, .), \ 
     
    2121            (${R_BC}/OCE/${config_UserChoices_TagName}/${opa9_UserChoices_OPA_version}/bathy.orca.nc, .), \ 
    2222            (${R_BC}/OCE/${config_UserChoices_TagName}/${opa9_UserChoices_OPA_version}/river.orca.nc, .), \ 
    23             (${R_BC}/OCE/${config_UserChoices_TagName}/${opa9_UserChoices_OPA_version}/ndeposition.orca.nc, .), \ 
     23            (${R_BC}/OCE/${config_UserChoices_TagName}/${opa9_UserChoices_OPA_version}/ndeposition.orca.nc, .) 
    2424 
    2525[ParametersFiles] 
    2626List= (${SUBMIT_DIR}/PARAM/namelist_top, .), \ 
    27         (${SUBMIT_DIR}/PARAM/namelist_pisces,    .) 
     27        (${SUBMIT_DIR}/PARAM/namelist_pisces, .), \ 
    2828 
    2929[RestartFiles] 
     
    3131 
    3232[OutputText] 
    33 List=   (namelist_top, namelist_pisces) 
     33List=   () 
    3434 
    3535[OutputFiles] 
    36 List=   (${PREFIX_NWRITETRC}_${DATE_OPA}_ptrc_T.nc, ${R_OUT_MBG_NWRITE}/${PREFIX}_${WFT1}_ptrc_T.nc, Post_1M_ptrc_T), \ 
    37         (${PREFIX_NWRITETRC}_${DATE_OPA}_diad_T.nc, ${R_OUT_MBG_NWRITE}/${PREFIX}_${WFT1}_diad_T.nc, Post_1M_diad_T) 
     36List=   (${PREFIX_WFT1}_ptrc_T.nc, ${R_OUT_MBG_WFT1}/${PREFIX}_${WFT1}_ptrc_T.nc, NONE), \ 
     37        (${PREFIX_WFT1}_diad_T.nc, ${R_OUT_MBG_WFT1}/${PREFIX}_${WFT1}_diad_T.nc, NONE), \ 
     38        (${PREFIX_WFT2}_ptrc_T.nc, ${R_OUT_MBG_WFT2}/${PREFIX}_${WFT2}_ptrc_T.nc, Post_1M_ptrc_T), \ 
     39        (${PREFIX_WFT3}_diad_T.nc, ${R_OUT_MBG_WFT3}/${PREFIX}_${WFT3}_diad_T.nc, Post_5D_ptrc_T) 
    3840 
    39 [Post_1M_ptrc_T] 
    40 Patches= () 
    41 GatherWithInternal = (nav_lon, nav_lat, deptht, time_counter) 
    42 TimeSeriesVars = (DCHL, NCHL, NO3, PO4, O2, Si, Fer, DIC, Alkalini, DOC) 
    43  
    44 [Post_1M_diad_T] 
    45 Patches = () 
    46 GatherWithInternal = (nav_lon, nav_lat, deptht, time_counter) 
    47 TimeSeriesVars = (PMO, PMO2, Delc, Cflx, PPPHY, PPPHY2) 
    48  
  • trunk/CONFIG/ORCA2_LIM_PISCES/IGCM00/COMP/pisces.driver

    r1631 r1764  
    66    IGCM_debug_PushStack "MBG_Initialize" 
    77 
    8     ##--Variables used by MBG -- 
    9  
    10     # nwritetrc frequency of write in the tracer output file 
    11     # lrsttr    boolean term for tracer model restart (true or false) 
    12     # nrsttr    control of the time step (0, 1 or 2) 
    13     # ntrd_trc   time step frequency of write in the trends file for tracers 
    14     # ln_trdmld_trc_restart boolean term for trc trends restart (true or false) 
    15      
    16     ##--Variables used by PISCES -- 
    17   
    18     # nwritedia frequency of write in the additional diag output file 
    19  
    208# Local function to find namelists parameters 
    219supergrep () { 
     
    2311} 
    2412 
    25     PAT_TOP_NWRITETRC=$( supergrep nwritetrc             ${SUBMIT_DIR}/PARAM/namelist_top ) 
     13    ##--Variables used by MBG -- 
     14 
     15    # lrsttr    boolean term for tracer model restart (true or false) 
     16    # nrsttr    control of the time step (0, 1 or 2) 
     17     
     18    ##--Variables used by PISCES -- 
     19  
    2620    PAT_TOP_LRSTTR=$( supergrep ln_rsttr                 ${SUBMIT_DIR}/PARAM/namelist_top ) 
    2721    PAT_TOP_NRSTTR=$( supergrep nrsttr                   ${SUBMIT_DIR}/PARAM/namelist_top ) 
    28     PAT_TOP_NWRITETRD=$( supergrep ntrd_trc              ${SUBMIT_DIR}/PARAM/namelist_top ) 
    29     PAT_TOP_RSTRTTRD=$( supergrep ln_trdmld_trc_restart  ${SUBMIT_DIR}/PARAM/namelist_top ) 
    30  
    31     PAT_PIS_NWRITEDIA=$( supergrep nwritedia             ${SUBMIT_DIR}/PARAM/namelist_pisces ) 
     22    PAT_PIS_LRIVER=$( supergrep ln_river                 ${SUBMIT_DIR}/PARAM/namelist_pisces ) 
    3223 
    3324    IGCM_debug_PopStack "MBG_Initialize" 
     
    3930    IGCM_debug_PushStack "MBG_Update" 
    4031 
    41     ##--Write Frequency Purpose .... 
    42     topfrequency=$( echo ${config_MBG_WriteFrequency} | awk "-F " '{print $1}' ) 
    43     topfactor=$( echo ${topfrequency} | sed -e "s/[yYmMdD]//" ) 
    44     case ${topfrequency} in 
    45         1Y|1y) 
    46             (( TOP_NWRITE = OPA_NDT_DAY * topfactor * $( IGCM_date_DaysInYear  ${year} ) ))          ; 
    47             PREFIX_NWRITETRC=${config_UserChoices_JobName}_${topfactor}y ; 
    48             R_OUT_MBG_NWRITE=${R_OUT_MBG_O_Y} ; 
    49             WFT1=${topfactor}Y ;; 
    50         1M|1m) 
    51             (( TOP_NWRITE = OPA_NDT_DAY * topfactor * $( IGCM_date_DaysInMonth  ${year} ${month} ) ))          ; 
    52             PREFIX_NWRITETRC=${config_UserChoices_JobName}_${topfactor}m ; 
    53             R_OUT_MBG_NWRITE=${R_OUT_MBG_O_M} ; 
    54             WFT1=${topfactor}M ;; 
    55         *D|*d) 
    56             (( TOP_NWRITE = OPA_NDT_DAY * topfactor  ))          ; 
    57             PREFIX_NWRITETRC=${config_UserChoices_JobName}_${topfactor}d ; 
    58             R_OUT_MBG_NWRITE=${R_OUT_MBG_O_D} ; 
    59             WFT1=${topfactor}D ;; 
    60         *) 
    61     esac 
     32 
     33    ##--Write Frequency Purpose 
     34    Nbfreq=$( echo ${config_MBG_WriteFrequency} | wc -w ) 
     35    typeset -Z1 i=1 
     36    while [ $i -le ${Nbfreq} ]; do 
     37       topfrequency=$( echo ${config_MBG_WriteFrequency} | awk -v var="$i" "-F " '{print $var}' ) 
     38       topfactor=$( echo ${topfrequency} | sed -e "s/[yYmMdD]//" ) 
     39       case ${topfrequency} in 
     40         *Y|*y) 
     41            eval PREFIX_WFT${i}=${config_UserChoices_JobName}_${topfactor}y_${DatesPeriod} ; 
     42            eval R_OUT_MBG_WFT${i}=${R_OUT_MBG_O_Y} ; 
     43            eval WFT${i}=${topfactor}Y ;; 
     44         *M|*m) 
     45            eval PREFIX_WFT${i}=${config_UserChoices_JobName}_${topfactor}m_${DatesPeriod} ; 
     46            eval R_OUT_MBG_WFT${i}=${R_OUT_MBG_O_M} ; 
     47            eval WFT${i}=${topfactor}M ;; 
     48         *D|*d) 
     49            eval PREFIX_WFT${i}=${config_UserChoices_JobName}_${topfactor}d_${DatesPeriod} ; 
     50            eval R_OUT_MBG_WFT${i}=${R_OUT_MBG_O_D} ; 
     51            eval WFT${i}=${topfactor}D ;; 
     52         *) 
     53      esac 
     54       let i=$i+1 
     55    done 
    6256 
    6357    ##-- Restart configuration 
     
    6862        TOP_NRSTTR=0 
    6963 
     64        PISCES_LRIVER=.FALSE. 
     65 
    7066    elif ( [ "${CumulPeriod}" -eq 1 ] && [ "${config_MBG_Restart}" = "y" ] ) ; then 
    7167 
     
    7470        TOP_NRSTTR=0 
    7571 
     72        PISCES_LRIVER=.TRUE. 
     73 
    7674    else 
    7775 
     
    7977        TOP_LRSTTR=.TRUE. 
    8078        TOP_NRSTTR=2 
     79 
     80        PISCES_LRIVER=.TRUE. 
     81 
    8182    fi 
    8283 
    83     sed -e "s%${PAT_TOP_NWRITETRC}%       nwritetrc=${TOP_NWRITE}%"               \ 
    84         -e "s%${PAT_TOP_NWRITETRD}%       ntrd_trc=${TOP_NWRITE}%"                \ 
    85         -e "s%${PAT_TOP_LRSTTR}%          ln_rsttr=${TOP_LRSTTR}%"                   \ 
     84# on force les sorties PISCES comme les sorties OPA 
     85 
     86    sed -e "s%${PAT_TOP_LRSTTR}%          ln_rsttr=${TOP_LRSTTR}%"                   \ 
    8687        -e "s%${PAT_TOP_NRSTTR}%          nrsttr=${TOP_NRSTTR}%"                   \ 
    8788        namelist_top > namelist_top.tmp 
     
    8990    IGCM_sys_Mv namelist_top.tmp namelist_top 
    9091 
    91 # on force les sorties PISCES comme les sorties OPA 
    92  
    93     sed -e "s%${PAT_PIS_NWRITEDIA}%       nwritedia=${TOP_NWRITE}%"              \ 
     92    sed -e "s%${PAT_PIS_LRIVER}%          ln_river=${PISCES_LRIVER}%"                \ 
    9493        namelist_pisces > namelist_pisces.tmp 
    9594 
    9695    IGCM_sys_Mv namelist_pisces.tmp namelist_pisces 
    9796 
    98     echo 'Variables automatically updated in namelists' 
    99     grep AUTO namelist* 
    10097 
    10198    IGCM_debug_PopStack "MBG_Update" 
Note: See TracChangeset for help on using the changeset viewer.