Changeset 3854


Ignore:
Timestamp:
05/28/18 16:27:48 (22 months ago)
Author:
cetlod
Message:

NEMO_v6 for OMIP : Add new version of sub-dir PARAM + update driver

Location:
CONFIG/UNIFORM/v6/NEMO_v6/GENERAL
Files:
36 added
3 edited

Legend:

Unmodified
Added
Removed
  • CONFIG/UNIFORM/v6/NEMO_v6/GENERAL/DRIVER/lim3.driver

    r3512 r3854  
    4545    IGCM_comp_modifyXmlFile nonblocker file_def_nemo-lim.xml 1y_lim enabled ${VI1Y_ENABLE} 
    4646 
     47    IGCM_comp_modifyXmlFile nonblocker file_def_nemo-lim.xml 1d_lim output_level ${lim3_UserChoices_OutputLevel} 
     48    IGCM_comp_modifyXmlFile nonblocker file_def_nemo-lim.xml 5d_lim output_level ${lim3_UserChoices_OutputLevel} 
     49    IGCM_comp_modifyXmlFile nonblocker file_def_nemo-lim.xml 1m_lim output_level ${lim3_UserChoices_OutputLevel} 
     50    IGCM_comp_modifyXmlFile nonblocker file_def_nemo-lim.xml 1y_lim output_level ${lim3_UserChoices_OutputLevel} 
     51 
     52 
    4753    echo UPDATE ICE !!! 
    4854 
  • CONFIG/UNIFORM/v6/NEMO_v6/GENERAL/DRIVER/opa9.driver

    r3512 r3854  
    66 
    77    RESOL_OCE=${config_UserChoices_ExpType%%_*} 
    8     EXPTYPE=${config_UserChoices_ExpType##*/} 
     8    exptype=${config_UserChoices_ExpType##*/} 
    99 
    1010    IGCM_debug_Print 1 " " 
    1111    IGCM_debug_Print 1 "RESOL_OCE        : ${RESOL_OCE}" 
    12     IGCM_debug_Print 1 "EXPERIMENT TYPE  : ${EXPTYPE}" 
     12    IGCM_debug_Print 1 "FORCING          : ${exptype}" 
     13    IGCM_debug_Print 1 "EXPERIMENT TYPE  : ${opa9_UserChoices_forcing}" 
    1314 
    1415# Local function to find namelists parameters 
     
    1718} 
    1819 
    19     OPA_RDT=$( supergrep rn_rdt  ${SUBMIT_DIR}/PARAM/namelist_${RESOL_OCE}${EXPTYPE}_cfg | sed 's/ *rn_rdt *=//' | sed 's/\. *,//' ) 
     20    OPA_RDT=$( supergrep rn_rdt ${SUBMIT_DIR}/PARAM/NAMELIST/${RESOL_OCE}/namelist_${opa9_UserChoices_forcing}_${exptype}_cfg | sed 's/ *rn_rdt *=//' | sed 's/\. *,//' ) 
    2021 
    2122    # Period Length In Days between DateBegin and first day of calendar 0001 01 01 
     
    3031    IGCM_debug_Print 1 "OPA_NPDT_DAY   ${OPA_NPDT_DAY}" 
    3132    IGCM_debug_Print 1 "OPA_NPDT_YEAR  ${OPA_NPDT_YEAR}" 
     33 
    3234 
    3335    IGCM_debug_PopStack "OCE_Initialize" 
     
    5456    done 
    5557 
    56     if [ "${EXPTYPE}" = "ia"   ] ; then 
     58    if [ "${exptype}" = "ia"   ] ; then 
    5759       NbFileInter=${#opa9_UserChoices_ListForcing[*]} 
    5860       (( LengthForcing=${opa9_UserChoices_YearForcingEnd} - ${opa9_UserChoices_YearForcingInit} + 1 )) 
     
    105107    fi 
    106108 
    107     ##-- Restart configuration 
     109   ##-- Restart configuration 
    108110    if ( [ "${CumulPeriod}" -eq 1 ] && [ "${config_OCE_Restart}" = "n" ] ) ; then 
    109  
    110         #echo "NO OPA RESTART" 
    111         OPA_LRSTAR=.FALSE. 
    112         OPA_NRSTDT=0 
     111      OPA_LRSTAR=.FALSE. 
     112      OPA_NRSTDT=0 
     113      #echo "NO OPA RESTART" 
    113114    elif ( [ "${CumulPeriod}" -eq 1 ] && [ "${config_OCE_Restart}" = "y" ] ) ; then 
    114  
    115         #echo "OPA RESTART" 
    116         OPA_LRSTAR=.TRUE. 
    117         OPA_NRSTDT=0 
     115      OPA_LRSTAR=.TRUE. 
     116      OPA_NRSTDT=0 
     117      #echo "OPA RESTART" 
    118118    else 
    119  
    120         #echo "OPA RESTART" 
    121         OPA_LRSTAR=.TRUE. 
    122         OPA_NRSTDT=2 
    123     fi 
     119      OPA_LRSTAR=.TRUE. 
     120      OPA_NRSTDT=2 
     121      #echo "OPA RESTART" 
     122    fi 
     123 
    124124    
    125125    OPA_NMSH=0 
     
    128128        IGCM_card_WriteOption ${SUBMIT_DIR}/COMP/opa9.card UserChoices mesh_mask "n" 
    129129    fi 
     130 
    130131    ## nleapy configuration 
    131132    case ${config_UserChoices_CalendarType} in 
     
    135136        ( *             ) OPA_NLEAPY=30 ;; 
    136137    esac 
     138 
    137139 
    138140   typeset -r PRECIS=8 
     
    147149   IGCM_comp_modifyNamelist blocker    namelist_cfg nn_date0 ${PeriodDateBegin} 
    148150   IGCM_comp_modifyNamelist nonblocker namelist_cfg nn_msh    ${OPA_NMSH} 
     151   IGCM_comp_modifyNamelist nonblocker namelist_cfg nn_rnf_depth_file  ${OPA_NMSH} 
    149152   IGCM_comp_modifyNamelist blocker    namelist_cfg nn_leapy  ${OPA_NLEAPY}   
    150153 
     
    156159   IGCM_comp_modifyXmlFile nonblocker file_def_nemo-opa.xml 1m_opa enabled ${V1M_ENABLE} 
    157160   IGCM_comp_modifyXmlFile nonblocker file_def_nemo-opa.xml 1y_opa enabled ${V1Y_ENABLE} 
    158          
     161 
     162   IGCM_comp_modifyXmlFile nonblocker file_def_nemo-opa.xml 1d_opa output_level ${opa9_UserChoices_OutputLevel} 
     163   IGCM_comp_modifyXmlFile nonblocker file_def_nemo-opa.xml 5d_opa output_level ${opa9_UserChoices_OutputLevel} 
     164   IGCM_comp_modifyXmlFile nonblocker file_def_nemo-opa.xml 1m_opa output_level ${opa9_UserChoices_OutputLevel} 
     165   IGCM_comp_modifyXmlFile nonblocker file_def_nemo-opa.xml 1y_opa output_level ${opa9_UserChoices_OutputLevel} 
     166 
     167   IGCM_comp_modifyXmlFile force context_nemo.xml ref_year NONE ${InitYear}  
     168 
     169 
     170   #Long Name as global attribute (if LongName is not empty) 
     171   if [ ! "X${config_UserChoices_LongName}" = "X" ] ; then 
     172      listfile=$(ls file_def_nemo*.xml) 
     173      echo "<variable id=\"LongName\" type=\"string\">${config_UserChoices_LongName}</variable>" > add.tmp 
     174      for file in ${listfile} 
     175        do 
     176            cp ${file} ${file}.tmp 
     177            sed -e "/<file id/r add.tmp" \ 
     178                ${file}.tmp > ${file} 
     179            rm ${file}.tmp  
     180        done  
     181        rm add.tmp 
     182   fi 
    159183 
    160184# update domain_def.xml file  
  • CONFIG/UNIFORM/v6/NEMO_v6/GENERAL/DRIVER/pisces.driver

    r3512 r3854  
    1313    if [ X"${pisces_UserChoices_Offline_Mode}" = X"y" ] ; then 
    1414       RESOL_OCE=${config_UserChoices_ExpType%%_*} 
    15        EXPTYPE=${config_UserChoices_ExpType##*/} 
     15       exptype=${config_UserChoices_ExpType##*/} 
    1616 
    1717       IGCM_debug_Print 1 " " 
    1818       IGCM_debug_Print 1 "RESOL_OCE        : ${RESOL_OCE}" 
    19        IGCM_debug_Print 1 "EXPERIMENT TYPE  : ${EXPTYPE}" 
    20  
    21        OPA_RDT=$( supergrep rn_rdt  ${SUBMIT_DIR}/PARAM/namelist_${RESOL_OCE}${EXPTYPE}_offline_cfg | sed 's/ *rn_rdt *=//' | sed 's/\. *,//' ) 
     19       IGCM_debug_Print 1 "EXPERIMENT TYPE  : ${exptype}" 
     20 
     21       OPA_RDT=$( supergrep rn_rdt  ${SUBMIT_DIR}/PARAM/NAMELIST/${RESOL_OCE}$/namelist_offline_${exptype}_cfg | sed 's/ *rn_rdt *=//' | sed 's/\. *,//' ) 
    2222       # Period Length In Days between DateBegin and first day of calendar 0001 01 01 
    2323       # /!\ Needed by OPA namelist to compute file names /!\ 
     
    168168      esac  
    169169 
     170      IGCM_comp_modifyXmlFile force context_nemo.xml ref_year NONE ${InitYear} 
     171 
    170172   fi 
    171173 
     
    188190    IGCM_comp_modifyXmlFile nonblocker file_def_nemo-pisces.xml 1y_pis enabled ${VT1Y_ENABLE} 
    189191 
     192    IGCM_comp_modifyXmlFile nonblocker file_def_nemo-pisces.xml 1d_pis output_level ${pisces_UserChoices_OutputLevel} 
     193    IGCM_comp_modifyXmlFile nonblocker file_def_nemo-pisces.xml 5d_pis output_level ${pisces_UserChoices_OutputLevel} 
     194    IGCM_comp_modifyXmlFile nonblocker file_def_nemo-pisces.xml 1m_pis output_level ${pisces_UserChoices_OutputLevel} 
     195    IGCM_comp_modifyXmlFile nonblocker file_def_nemo-pisces.xml 1y_pis output_level ${pisces_UserChoices_OutputLevel} 
     196 
    190197 
    191198 
Note: See TracChangeset for help on using the changeset viewer.