Ignore:
Timestamp:
05/12/16 14:05:28 (8 years ago)
Author:
cetlod
Message:

Use the IGCM_comp_modifyNamelist function for PISCES parameters

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CONFIG/UNIFORM/v6/IPSLCM6/GENERAL/DRIVER/pisces.driver

    r2753 r2839  
    1616     grep ${1} ${2} | grep -v "#"  | sed -e 's/=//g' -e 's/://g' -e 's/_AUTO_//' -e 's/DEFAULT//' | sed -e "s/${1}//"  
    1717} 
    18  
    19     ##--Variables used by MBG -- 
    20  
    21     # ln_rsttr  boolean term for tracer model restart (true or false) 
    22     # nrsttr    control of the time step (0, 1 or 2) 
    23      
    24     ##--Variables used by PISCES -- 
    25   
    26     NAMELIST_TOP_CFG=${SUBMIT_DIR}/PARAM/namelist_top_${RESOL_OCE}_cfg 
    27     NAMELIST_PISCES_CFG=${SUBMIT_DIR}/PARAM/namelist_pisces_${RESOL_OCE}_cfg 
    28  
    29     PAT_TOP_LRSTTR=$( supergrep ln_rsttr          ${NAMELIST_TOP_CFG} ) 
    30     PAT_TOP_NRSTTR=$( supergrep nn_rsttr          ${NAMELIST_TOP_CFG} ) 
    31     PAT_PIS_ATCCO2=$( supergrep atcco2            ${NAMELIST_PISCES_CFG} ) 
    32  
    33     IGCM_debug_Print 1 " PAT_PIS_ATCCO2 : ${PAT_PIS_ATCCO2} " 
    3418 
    3519    IGCM_debug_PopStack "MBG_Initialize" 
     
    9276        IPCC_PIS_CO2=$( echo "${PreviousLinelog[*]}" | gawk -F '|' '{gsub(" ",""); print $4}' ) 
    9377        IGCM_debug_Print 1 "IPCC_PIS_CO2 : ${IPCC_PIS_CO2} " 
    94         sed -e "s%${PAT_PIS_ATCCO2}%          atcco2=${IPCC_PIS_CO2}%"             \ 
    95             namelist_pisces_cfg > namelist_pisces_cfg.tmp 
    96         IGCM_sys_Mv namelist_pisces_cfg.tmp namelist_pisces_cfg 
     78        IGCM_comp_modifyNamelist nonblocker    namelist_pisces_cfg atcco2 ${IPCC_PIS_CO2}  
    9779    else 
    9880        IGCM_debug_Print 1 "Take same CO2 as for LMDZ, in parameter file config.def." 
     
    10183        LMDZ_CO2=$( lmdzgrep2 co2_ppm config.def ) 
    10284        IGCM_debug_Print 1 "LMDZ_CO2 : ${LMDZ_CO2} " 
    103         sed -e "s%${PAT_PIS_ATCCO2}%          atcco2=${LMDZ_CO2}%"             \ 
    104             namelist_pisces_cfg > namelist_pisces_cfg.tmp 
    105         IGCM_sys_Mv namelist_pisces_cfg.tmp namelist_pisces_cfg 
     85        IGCM_comp_modifyNamelist nonblocker    namelist_pisces_cfg atcco2 ${LMDZ_CO2}  
    10686    fi 
    10787 
    10888    ##-- Update namelist_top_cfg and namelist_pisces_cfg 
     89   IGCM_comp_modifyNamelist blocker    namelist_top_cfg ln_rsttr  ${TOP_LRSTTR} 
     90   IGCM_comp_modifyNamelist blocker    namelist_top_cfg nn_rsttr  ${TOP_NRSTTR} 
    10991 
    110     sed -e "s%${PAT_TOP_LRSTTR}%          ln_rsttr=${TOP_LRSTTR}%"                   \ 
    111         -e "s%${PAT_TOP_NRSTTR}%          nn_rsttr=${TOP_NRSTTR}%"                   \ 
    112         namelist_top_cfg > namelist_top_cfg.tmp 
    113  
    114     IGCM_sys_Mv namelist_top_cfg.tmp namelist_top_cfg 
    115  
    116     IGCM_debug_PopStack "MBG_Update" 
     92   IGCM_debug_PopStack "MBG_Update" 
    11793} 
    11894 
Note: See TracChangeset for help on using the changeset viewer.