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_OFF_PISCES/IGCM00/COMP – NEMO

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

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

Location:
trunk/CONFIG/ORCA2_OFF_PISCES/IGCM00/COMP
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/CONFIG/ORCA2_OFF_PISCES/IGCM00/COMP/pisces.card

    r1661 r1764  
    88#-- available directories are:  v3, cpl 
    99#-- NOTE: if you use your own directory you have to comment it 
    10 OPA_dyn=cpl 
     10OPA_dyn=v3 
    1111#============================================================== 
    1212 
     
    1616[BoundaryFiles] 
    1717List= () 
    18 ListNonDel= (${R_BC}/${config_UserChoices_TagName}/DYN/${pisces_UserChoices_OPA_dyn}/VA66_mesh_mask.nc, mesh_mask.nc), \ 
    19             (${R_BC}/${config_UserChoices_TagName}/DYN/${pisces_UserChoices_OPA_dyn}/VA66_SE_2050_2059_1M_grid_T.nc,dyna_grid_T.nc), \ 
    20             (${R_BC}/${config_UserChoices_TagName}/DYN/${pisces_UserChoices_OPA_dyn}/VA66_SE_2050_2059_1M_grid_U.nc,dyna_grid_U.nc), \ 
    21             (${R_BC}/${config_UserChoices_TagName}/DYN/${pisces_UserChoices_OPA_dyn}/VA66_SE_2050_2059_1M_grid_V.nc,dyna_grid_V.nc), \ 
    22             (${R_BC}/${config_UserChoices_TagName}/DYN/${pisces_UserChoices_OPA_dyn}/VA66_SE_2050_2059_1M_grid_W.nc,dyna_grid_W.nc), \ 
     18ListNonDel= (${R_BC}/${config_UserChoices_TagName}/DYN/${pisces_UserChoices_OPA_dyn}/NEMOV3_mesh_mask.nc, mesh_mask.nc), \ 
     19            (${R_BC}/${config_UserChoices_TagName}/DYN/${pisces_UserChoices_OPA_dyn}/NEMOV3_5d_20910101_20911231_grid_T.nc, .), \ 
     20            (${R_BC}/${config_UserChoices_TagName}/DYN/${pisces_UserChoices_OPA_dyn}/NEMOV3_5d_20910101_20911231_grid_U.nc, .), \ 
     21            (${R_BC}/${config_UserChoices_TagName}/DYN/${pisces_UserChoices_OPA_dyn}/NEMOV3_5d_20910101_20911231_grid_V.nc, .), \ 
     22            (${R_BC}/${config_UserChoices_TagName}/DYN/${pisces_UserChoices_OPA_dyn}/NEMOV3_5d_20910101_20911231_grid_W.nc, .), \ 
    2323            (${R_BC}/${config_UserChoices_TagName}/INI/data_1m_DIC_nomask.nc, .), \ 
    2424            (${R_BC}/${config_UserChoices_TagName}/INI/data_1m_Alkalini_nomask.nc, .), \ 
     
    3333            (${R_BC}/${config_UserChoices_TagName}/ANC/bathy.orca.nc, .), \ 
    3434            (${R_BC}/${config_UserChoices_TagName}/ANC/river.orca.nc, .), \ 
    35             (${R_BC}/${config_UserChoices_TagName}/ANC/ndeposition.orca.nc, .), \ 
     35            (${R_BC}/${config_UserChoices_TagName}/ANC/ndeposition.orca.nc, .) 
    3636 
    3737[ParametersFiles] 
    3838List= (${SUBMIT_DIR}/PARAM/namelist, .), \ 
    3939        (${SUBMIT_DIR}/PARAM/namelist_top, .), \ 
    40         (${SUBMIT_DIR}/PARAM/namelist_pisces,    .) 
     40        (${SUBMIT_DIR}/PARAM/namelist_pisces, .), \ 
     41        (${SUBMIT_DIR}/PARAM/iodef.xml, .), \ 
     42        (${SUBMIT_DIR}/PARAM/xmlio_server.def, .) 
    4143 
    4244[RestartFiles] 
     
    4749 
    4850[OutputFiles] 
    49 List=   (${PREFIX_NWRITETRC}_${DATE_OPA}_ptrc_T.nc, ${R_OUT_MBG_NWRITE}/${PREFIX}_${WFT1}_ptrc_T.nc, NONE), \ 
    50         (${PREFIX_NWRITETRC}_${DATE_OPA}_diad_T.nc, ${R_OUT_MBG_NWRITE}/${PREFIX}_${WFT1}_diad_T.nc, NONE) 
     51List=   (${PREFIX_WFT1}_ptrc_T.nc, ${R_OUT_MBG_WFT1}/${PREFIX}_${WFT1}_ptrc_T.nc, NONE), \ 
     52        (${PREFIX_WFT1}_diad_T.nc, ${R_OUT_MBG_WFT1}/${PREFIX}_${WFT1}_diad_T.nc, NONE), \ 
     53        (${PREFIX_WFT2}_ptrc_T.nc, ${R_OUT_MBG_WFT2}/${PREFIX}_${WFT2}_ptrc_T.nc, Post_1M_ptrc_T), \ 
     54        (${PREFIX_WFT3}_diad_T.nc, ${R_OUT_MBG_WFT3}/${PREFIX}_${WFT3}_diad_T.nc, Post_5D_diad_T) 
    5155 
     56[Post_1M_ptrc_T] 
     57Patches= () 
     58GatherWithInternal = (nav_lon, nav_lat, deptht, time_counter) 
     59TimeSeriesVars = (DCHL, NCHL, NO3) 
     60 
     61[Post_5D_diad_T] 
     62Patches = () 
     63GatherWithInternal = (nav_lon, nav_lat, time_counter) 
     64TimeSeriesVars = (Cflx) 
     65 
  • trunk/CONFIG/ORCA2_OFF_PISCES/IGCM00/COMP/pisces.driver

    r1661 r1764  
    77 
    88    JOB_NAME=${config_UserChoices_JobName} 
    9  
    109    OPA_NDT_DAY=${pisces_UserChoices_OPA_NDT_DAY:=4} 
    11  
    1210 
    1311# Local function to find namelists parameters 
     
    4543    ##--Variables used by MBG -- 
    4644 
    47     # nwritetrc frequency of write in the tracer output file 
    4845    # lrsttr    boolean term for tracer model restart (true or false) 
    4946    # nrsttr    control of the time step (0, 1 or 2) 
    50     # ntrd_trc   time step frequency of write in the trends file for tracers 
    51     # ln_trdmld_trc_restart boolean term for trc trends restart (true or false) 
    5247     
    5348    ##--Variables used by PISCES -- 
    5449  
    55     # nwritedia frequency of write in the additional diag output file 
    56  
    57     PAT_TOP_NWRITETRC=$( supergrep nwritetrc             ${SUBMIT_DIR}/PARAM/namelist_top ) 
    5850    PAT_TOP_LRSTTR=$( supergrep ln_rsttr                 ${SUBMIT_DIR}/PARAM/namelist_top ) 
    5951    PAT_TOP_NRSTTR=$( supergrep nrsttr                   ${SUBMIT_DIR}/PARAM/namelist_top ) 
    60     PAT_TOP_NWRITETRD=$( supergrep ntrd_trc              ${SUBMIT_DIR}/PARAM/namelist_top ) 
    61     PAT_TOP_RSTRTTRD=$( supergrep ln_trdmld_trc_restart  ${SUBMIT_DIR}/PARAM/namelist_top ) 
     52    PAT_PIS_LRIVER=$( supergrep ln_river                 ${SUBMIT_DIR}/PARAM/namelist_pisces ) 
    6253 
    63     PAT_PIS_NWRITEDIA=$( supergrep nwritedia             ${SUBMIT_DIR}/PARAM/namelist_pisces ) 
    64     PAT_PIS_LRIVER=$( supergrep ln_river                 ${SUBMIT_DIR}/PARAM/namelist_pisces ) 
     54    ##--Variables used for XMLIO_SERVER configuration file 
     55 
     56    # using_server: .TRUE.(.FALSE.) to use(bypass) the io_server 
     57 
     58    PAT_SERVER=$( supergrep using_server ${SUBMIT_DIR}/PARAM/xmlio_server.def ) 
     59 
    6560 
    6661    IGCM_debug_PopStack "MBG_Initialize" 
     
    118113    IGCM_sys_Mv namelist.tmp namelist 
    119114 
    120     echo 'Variables automatically updated in namelists' 
    121     grep AUTO namelist* 
    122  
    123     ##--Write Frequency Purpose .... 
    124     topfrequency=$( echo ${config_MBG_WriteFrequency} | awk "-F " '{print $1}' ) 
    125     topfactor=$( echo ${topfrequency} | sed -e "s/[yYmMdD]//" ) 
    126     case ${topfrequency} in 
    127         1Y|1y) 
    128             (( TOP_NWRITE = OPA_NDT_DAY * topfactor * $( IGCM_date_DaysInYear  ${year} ) ))          ; 
    129             PREFIX_NWRITETRC=${config_UserChoices_JobName}_${topfactor}y ; 
    130             R_OUT_MBG_NWRITE=${R_OUT_MBG_O_Y} ; 
    131             WFT1=${topfactor}Y ;; 
    132         1M|1m) 
    133             (( TOP_NWRITE = OPA_NDT_DAY * topfactor * $( IGCM_date_DaysInMonth  ${year} ${month} ) ))          ; 
    134             PREFIX_NWRITETRC=${config_UserChoices_JobName}_${topfactor}m ; 
    135             R_OUT_MBG_NWRITE=${R_OUT_MBG_O_M} ; 
    136             WFT1=${topfactor}M ;; 
    137         *D|*d) 
    138             (( TOP_NWRITE = OPA_NDT_DAY * topfactor  ))          ; 
    139             PREFIX_NWRITETRC=${config_UserChoices_JobName}_${topfactor}d ; 
    140             R_OUT_MBG_NWRITE=${R_OUT_MBG_O_D} ; 
    141             WFT1=${topfactor}D ;; 
    142         *) 
    143     esac 
     115    ##--Write Frequency Purpose 
     116    Nbfreq=$( echo ${config_MBG_WriteFrequency} | wc -w ) 
     117    typeset -Z1 i=1 
     118    while [ $i -le ${Nbfreq} ]; do 
     119       topfrequency=$( echo ${config_MBG_WriteFrequency} | awk -v var="$i" "-F " '{print $var}' ) 
     120       topfactor=$( echo ${topfrequency} | sed -e "s/[yYmMdD]//" ) 
     121       case ${topfrequency} in 
     122         *Y|*y) 
     123            eval PREFIX_WFT${i}=${config_UserChoices_JobName}_${topfactor}y_${DatesPeriod} ; 
     124            eval R_OUT_MBG_WFT${i}=${R_OUT_MBG_O_Y} ; 
     125            eval WFT${i}=${topfactor}Y ;; 
     126         *M|*m) 
     127            eval PREFIX_WFT${i}=${config_UserChoices_JobName}_${topfactor}m_${DatesPeriod} ; 
     128            eval R_OUT_MBG_WFT${i}=${R_OUT_MBG_O_M} ; 
     129            eval WFT${i}=${topfactor}M ;; 
     130         *D|*d) 
     131            eval PREFIX_WFT${i}=${config_UserChoices_JobName}_${topfactor}d_${DatesPeriod} ; 
     132            eval R_OUT_MBG_WFT${i}=${R_OUT_MBG_O_D} ; 
     133            eval WFT${i}=${topfactor}D ;; 
     134         *) 
     135      esac 
     136       let i=$i+1 
     137    done 
    144138 
    145139    ##-- Restart configuration 
     
    150144        TOP_NRSTTR=0 
    151145 
    152         if ( [ "${pisces_UserChoices_OPA_dyn}" = "cpl" ] ) ; then 
    153              PISCES_LRIVER=.FALSE. 
    154         else 
    155              PISCES_LRIVER=.TRUE. 
    156         fi 
     146        PISCES_LRIVER=.FALSE. 
    157147 
    158148    elif ( [ "${CumulPeriod}" -eq 1 ] && [ "${config_MBG_Restart}" = "y" ] ) ; then 
     
    162152        TOP_NRSTTR=0 
    163153 
    164         if ( [ "${pisces_UserChoices_OPA_dyn}" = "cpl" ] ) ; then 
    165              PISCES_LRIVER=.TRUE. 
    166         else 
    167              PISCES_LRIVER=.TRUE. 
    168         fi 
    169  
     154        PISCES_LRIVER=.TRUE. 
    170155 
    171156    else 
     
    175160        TOP_NRSTTR=2 
    176161 
    177         if ( [ "${pisces_UserChoices_OPA_dyn}" = "cpl" ] ) ; then 
    178              PISCES_LRIVER=.TRUE. 
    179         else 
    180              PISCES_LRIVER=.TRUE. 
    181         fi 
     162        PISCES_LRIVER=.TRUE. 
    182163 
    183164    fi 
    184165 
    185     sed -e "s%${PAT_TOP_NWRITETRC}%       nwritetrc=${TOP_NWRITE}%"               \ 
    186         -e "s%${PAT_TOP_NWRITETRD}%       ntrd_trc=${TOP_NWRITE}%"                \ 
    187         -e "s%${PAT_TOP_LRSTTR}%          ln_rsttr=${TOP_LRSTTR}%"                   \ 
     166# on force les sorties PISCES comme les sorties OPA 
     167 
     168    sed -e "s%${PAT_TOP_LRSTTR}%          ln_rsttr=${TOP_LRSTTR}%"                   \ 
    188169        -e "s%${PAT_TOP_NRSTTR}%          nrsttr=${TOP_NRSTTR}%"                   \ 
    189170        namelist_top > namelist_top.tmp 
     
    191172    IGCM_sys_Mv namelist_top.tmp namelist_top 
    192173 
    193 # on force les sorties PISCES comme les sorties OPA 
    194  
    195     sed -e "s%${PAT_PIS_NWRITEDIA}%       nwritedia=${TOP_NWRITE}%"              \ 
    196         -e "s%${PAT_PIS_LRIVER}%          ln_river=${PISCES_LRIVER}%"                \ 
     174    sed -e "s%${PAT_PIS_LRIVER}%          ln_river=${PISCES_LRIVER}%"                \ 
    197175        namelist_pisces > namelist_pisces.tmp 
    198176 
    199177    IGCM_sys_Mv namelist_pisces.tmp namelist_pisces 
    200178 
    201     echo 'Variables automatically updated in namelists' 
    202     grep AUTO namelist* 
    203179 
    204180    IGCM_debug_PopStack "MBG_Update" 
     
    210186    IGCM_debug_PushStack "MBG_Finalize" 
    211187 
    212     if [ -f date.file ] ; then 
    213         # Prefix use in opa.card AND in lim2.card : 
    214         DATE_OPA=$( cat date.file | \ 
    215             sed "s/\ ${config_UserChoices_JobName}_[0-9]*[a-z]_\([0-9]*_[0-9]*\)_\ */\1/g" ) 
    216         ###DATE_OPA=$( $DATE_OPABF | cut -c1-30 ) 
    217         MainPrefix=${config_UserChoices_JobName}_1d_${DATE_OPA} 
    218         SecondPrefix=${config_UserChoices_JobName}_5d_${DATE_OPA} 
    219     fi 
    220  
    221188    echo FINALIZE MBG !!! 
    222189 
Note: See TracChangeset for help on using the changeset viewer.