Ignore:
Timestamp:
08/24/23 15:03:48 (10 months ago)
Author:
cetlod
Message:

NEMOv6.5 : Update config to switch to NEMOv4.2.1 and PISCES gas

Location:
CONFIG/UNIFORM/v6/NEMO_v6.5/GENERAL/DRIVER
Files:
1 added
2 edited

Legend:

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

    r6013 r6601  
    2525} 
    2626 
    27     OPA_RDT=$( supergrep rn_rdt ${SUBMIT_DIR}/PARAM/NAMELIST/${RESOL_OCE}/namelist_${opa9_UserChoices_forcing}_${exptype}_cfg | sed 's/ *rn_rdt *=//' | sed 's/\. *,//' ) 
     27    OPA_RDT=$( supergrep rn_Dt ${SUBMIT_DIR}/PARAM/NAMELIST/${RESOL_OCE}/namelist_${opa9_UserChoices_forcing}_${exptype}_cfg | sed 's/ *rn_Dt *=//' | sed 's/\. *,//' ) 
    2828 
    2929    # Period Length In Days between DateBegin and first day of calendar 0001 01 01 
  • CONFIG/UNIFORM/v6/NEMO_v6.5/GENERAL/DRIVER/pisces.driver

    r6230 r6601  
    2828 
    2929 
    30        OPA_RDT=$( supergrep rn_rdt  ${SUBMIT_DIR}/PARAM/NAMELIST/${RESOL_OCE}/namelist_offline_${exptype}_cfg | sed 's/ *rn_rdt *=//' | sed 's/\. *,//' ) 
     30       OPA_RDT=$( supergrep rn_Dt  ${SUBMIT_DIR}/PARAM/NAMELIST/${RESOL_OCE}/namelist_offline_${exptype}_cfg | sed 's/ *rn_Dt *=//' | sed 's/\. *,//' ) 
    3131       # Period Length In Days between DateBegin and first day of calendar 0001 01 01 
    3232       # /!\ Needed by OPA namelist to compute file names /!\ 
     
    4141       IGCM_debug_Print 1 "OPA_NPDT_DAY   ${OPA_NPDT_DAY}" 
    4242       IGCM_debug_Print 1 "OPA_NPDT_YEAR  ${OPA_NPDT_YEAR}" 
    43  
    4443     fi 
    4544 
     
    141140       fi 
    142141    fi 
    143      
    144     if [ X"${pisces_UserChoices_Offline_Mode}" = X"y" ] ; then 
    145        if [ X"${pisces_UserChoices_Offline_DynTrp}" = X"y" ] ; then 
    146           OFF_DYNTRP=.TRUE. 
    147        else 
    148           OFF_DYNTRP=.FALSE. 
    149        fi 
    150     fi 
     142 
    151143    ##-- Restart configuration 
    152144    if ( [ "${CumulPeriod}" -eq 1 ] && [ "${config_MBG_Restart}" = "n" ] ) ; then 
     
    177169      IGCM_comp_modifyNamelist blocker    namelist_cfg nn_date0  ${PeriodDateBegin} 
    178170      IGCM_comp_modifyNamelist blocker    namelist_cfg nn_leapy  ${OPA_NLEAPY} 
    179       IGCM_comp_modifyNamelist blocker    namelist_cfg ln_dyntrp ${OFF_DYNTRP} 
    180171 
    181172# update domain_def.xml file  
     
    190181   fi 
    191182 
    192    if [ X"${pisces_UserChoices_pis}" = X"n" ] ; then 
     183   if [ X"${pisces_UserChoices_pis}" = X"y" ] ; then 
    193184      echo "DeActivate pisces outputs" 
    194       IGCM_comp_modifyXmlFile force file_def_nemo-top.xml file33 enabled .FALSE. 
    195       IGCM_comp_modifyXmlFile force file_def_nemo-top.xml file34 enabled .FALSE. 
    196       IGCM_comp_modifyXmlFile force file_def_nemo-top.xml file35 enabled .FALSE. 
    197       IGCM_comp_modifyXmlFile force file_def_nemo-top.xml file36 enabled .FALSE. 
    198       IGCM_comp_modifyXmlFile force file_def_nemo-top.xml file37 enabled .FALSE. 
     185      IGCM_comp_modifyXmlFile force file_def_nemo-top.xml file31 enabled .TRUE. 
     186      IGCM_comp_modifyXmlFile force file_def_nemo-top.xml file32 enabled .TRUE. 
     187      IGCM_comp_modifyXmlFile force file_def_nemo-top.xml file33 enabled .TRUE. 
     188      IGCM_comp_modifyXmlFile force file_def_nemo-top.xml file34 enabled .TRUE. 
     189      IGCM_comp_modifyXmlFile force file_def_nemo-top.xml file35 enabled .TRUE. 
     190      IGCM_comp_modifyXmlFile force file_def_nemo-top.xml file36 enabled .TRUE. 
     191      IGCM_comp_modifyXmlFile force file_def_nemo-top.xml file37 enabled .TRUE. 
    199192   fi 
    200193 
     
    210203      echo "Activate CFC11  tracer" 
    211204      TOP_CFC11=.TRUE. 
    212       IGCM_comp_modifyXmlFile force file_def_nemo-top.xml file39 enabled .FALSE. 
     205      IGCM_comp_modifyXmlFile force file_def_nemo-top.xml file39 enabled .TRUE. 
    213206   else 
    214207      TOP_CFC11=.FALSE. 
     
    223216   fi 
    224217## 
    225    if [ X"${pisces_UserChoices_Co2Anthr}" = X"y" ] ; then 
    226       LCO2INT=.TRUE. 
    227    else 
    228       LCO2INT=.FALSE. 
    229    fi 
     218   if [ X"${pisces_UserChoices_sf6}" = X"y" ] ; then 
     219      echo "Activate SF6  tracer" 
     220      TOP_SF6=.TRUE. 
     221      IGCM_comp_modifyXmlFile force file_def_nemo-top.xml file41 enabled .TRUE. 
     222   else 
     223      TOP_SF6=.FALSE. 
     224   fi 
     225## 
     226  if [ X"${pisces_UserChoices_c14}" = X"y" ] ; then 
     227      echo "Activate RC14  tracer" 
     228      TOP_C14=.TRUE. 
     229      IGCM_comp_modifyXmlFile force file_def_nemo-top.xml file42 enabled .TRUE. 
     230   else 
     231      TOP_C14=.FALSE. 
     232   fi 
     233 
     234   if [ X"${pisces_UserChoices_gas}" = X"n" ] ; then 
     235      LGAS=.FALSE. 
     236      cp namelist_top_p4z_cfg  namelist_top_cfg 
     237   else 
     238      echo "Activate  gas tracer" 
     239      LGAS=.TRUE. 
     240      cp namelist_top_p4z_gas_cfg  namelist_top_cfg 
     241      IGCM_comp_modifyXmlFile force file_def_nemo-top.xml file50 enabled .TRUE. 
     242      IGCM_comp_modifyXmlFile force file_def_nemo-top.xml file51 enabled .TRUE. 
     243   fi 
     244## 
     245   if [ X"${pisces_UserChoices_AnthrGas}" = X"y" ] ; then 
     246      # Read value for co2_ppm from file CO2.txt. If file not existing, take DEFAULT.  
     247      if [ -f atmco2.txt ] ; then 
     248         line_year=`awk '/'${year}'/{print NR}' atmco2.txt` 
     249         PisCo2=`awk 'NR == '$line_year' {print $2 }' atmco2.txt` 
     250      else 
     251         PisCo2=${pisces_UserChoices_AtmCo2} 
     252      fi 
     253    else 
     254         PisCo2=${pisces_UserChoices_AtmCo2} 
     255    fi 
     256 
     257   if [ X"${pisces_UserChoices_AnthrGas}" = X"y" ] && [ X"${pisces_UserChoices_gas}" = X"y" ] ; then 
     258      if [ -f atmn2o.txt ] ; then 
     259         line_year=`awk '/'${year}'/{print NR}' atmn2o.txt` 
     260         PisNo2=`awk 'NR == '$line_year' {print $2 }' atmn2o.txt` 
     261      else 
     262         PisN2o=${pisces_UserChoices_AtmN2o} 
     263      fi 
     264      if [ -f atmcos.txt ] ; then 
     265         line_year=`awk '/'${year}'/{print NR}' atmcos.txt` 
     266         PisCos=`awk 'NR == '$line_year' {print $2 }' atmcos.txt` 
     267      else 
     268         PisCos=${pisces_UserChoices_AtmCos} 
     269      fi 
     270    else 
     271         PisN2o=${pisces_UserChoices_AtmN2o} 
     272         PisCos=${pisces_UserChoices_AtmCos} 
     273    fi 
    230274   ##-- Update namelist_top_cfg and namelist_pisces_cfg 
    231275    IGCM_comp_modifyNamelist blocker    namelist_top_cfg     ln_rsttr  ${TOP_LRSTTR} 
     
    234278    IGCM_comp_modifyNamelist blocker    namelist_top_cfg     ln_cfc11  ${TOP_CFC11} 
    235279    IGCM_comp_modifyNamelist blocker    namelist_top_cfg     ln_cfc12  ${TOP_CFC12} 
     280    IGCM_comp_modifyNamelist blocker    namelist_top_cfg     ln_sf6    ${TOP_SF6} 
     281    IGCM_comp_modifyNamelist blocker    namelist_top_cfg     ln_c14    ${TOP_C14} 
    236282    if [ X"${pisces_UserChoices_pis}" = X"y" ] ; then 
    237        IGCM_comp_modifyNamelist blocker    namelist_pisces_cfg  ln_co2int ${LCO2INT} 
    238        IGCM_comp_modifyNamelist blocker    namelist_pisces_cfg  atcco2    ${pisces_UserChoices_AtmCo2} 
     283       IGCM_comp_modifyNamelist blocker    namelist_pisces_cfg  atcco2    ${PisCo2} 
    239284       IGCM_comp_modifyNamelist blocker    namelist_pisces_cfg  nrdttrc   ${pisces_UserChoices_PisFreq} 
    240285       IGCM_comp_modifyNamelist blocker    namelist_pisces_cfg  nn_pisdmp ${OPA_NPDT_YEAR} 
     286       IGCM_comp_modifyNamelist blocker    namelist_pisces_cfg  ln_dms     ${LGAS} 
     287       IGCM_comp_modifyNamelist blocker    namelist_pisces_cfg  ln_n2o     ${LGAS} 
     288       IGCM_comp_modifyNamelist blocker    namelist_pisces_cfg  ln_bvocs   ${LGAS} 
     289       IGCM_comp_modifyNamelist blocker    namelist_pisces_cfg  atcn2o     ${PisN2o} 
     290       IGCM_comp_modifyNamelist blocker    namelist_pisces_cfg  atccos     ${PisCos} 
    241291    fi 
    242292  
Note: See TracChangeset for help on using the changeset viewer.