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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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  
Note: See TracChangeset for help on using the changeset viewer.