Changeset 6545


Ignore:
Timestamp:
07/11/23 15:41:04 (11 months ago)
Author:
acosce
Message:

update driver and def to be use with inca model

Location:
CONFIG/UNIFORM/v7/IPSLCM7/GENERAL
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • CONFIG/UNIFORM/v7/IPSLCM7/GENERAL/DRIVER/dynamico.driver

    r6417 r6545  
    2424 
    2525 
    26     if [ -f ${SUBMIT_DIR}/../../../bin/inca_${OptMode}_${ConfChem}.dat ];  then  
    27         eval $(grep nbtrac ${SUBMIT_DIR}/../../../bin/inca_${OptMode}_${ConfChem}.dat) || nbtrac=1 
     26    if [ -f ${SUBMIT_DIR}/../../../bin/inca_${ConfChem}.dat ];  then  
     27        eval $(grep nbtrac ${SUBMIT_DIR}/../../../bin/inca_${ConfChem}.dat) || nbtrac=1 
    2828    else 
    2929        nbtrac=1 
  • CONFIG/UNIFORM/v7/IPSLCM7/GENERAL/DRIVER/inca.driver

    r5479 r6545  
    2020    IGCM_debug_PushStack "CHM_Initialize" 
    2121 
    22     if [ X$ResolAtm != X ] ; then 
    23         # ResolAtm is set in config.card 
    24         RESOL_ATM_3D=${ResolAtm} 
    25         RESOL_ATM_Z=$( echo ${RESOL_ATM_3D} | awk "-Fx" '{print $3}' ) 
    26         RESOL_ATM_X=$( echo ${RESOL_ATM_3D} | awk "-Fx" '{print $1}' ) 
    27         RESOL_ATM_Y=$( echo ${RESOL_ATM_3D} | awk "-Fx" '{print $2}' ) 
    28  
    29         RESOL_CHM=${RESOL_ATM_X}${RESOL_ATM_Y}-L${RESOL_ATM_Z} 
    30     elif [ -f ${SUBMIT_DIR}/../.resol ] ; then 
    31         [ -f ${SUBMIT_DIR}/../.resol ] && eval $(grep RESOL_ATM_3D ${SUBMIT_DIR}/../.resol) || RESOL_ATM_3D=96x95x19 
    32         RESOL_CHM_Z=$( echo ${RESOL_ATM_3D} | awk "-Fx" '{print $3}' | awk "-F-" '{print $1}') 
    33     else 
     22    if [ X${config_ListOfComponents_ICO} = X ] ; then 
     23 
     24        if [ X$ResolAtm != X ] ; then 
     25            # ResolAtm is set in config.card 
     26            RESOL_ATM_3D=${ResolAtm} 
     27            RESOL_ATM_Z=$( echo ${RESOL_ATM_3D} | awk "-Fx" '{print $3}' ) 
     28            RESOL_ATM_X=$( echo ${RESOL_ATM_3D} | awk "-Fx" '{print $1}' ) 
     29            RESOL_ATM_Y=$( echo ${RESOL_ATM_3D} | awk "-Fx" '{print $2}' ) 
     30             
     31            RESOL_CHM=${RESOL_ATM_X}${RESOL_ATM_Y}-L${RESOL_ATM_Z} 
     32        elif [ -f ${SUBMIT_DIR}/../.resol ] ; then 
     33            [ -f ${SUBMIT_DIR}/../.resol ] && eval $(grep RESOL_ATM_3D ${SUBMIT_DIR}/../.resol) || RESOL_ATM_3D=96x95x19 
     34            RESOL_CHM_Z=$( echo ${RESOL_ATM_3D} | awk "-Fx" '{print $3}' | awk "-F-" '{print $1}') 
     35        else 
    3436        IGCM_debug_Exit "ResolAtm is not set in config.card and the .resol file does not exist." 
    3537        IGCM_debug_Verif_Exit 
     38        fi 
     39    else 
     40        RESOL_ATM_Z=${dynamico_UserChoices_RESOL_ATM_Z} 
     41        RESOL_NBP=${dynamico_UserChoices_RESOL_NBP} 
     42 
    3643    fi 
    3744 
     
    332339 
    333340 
     341    # inca.def : regrid output files on regular grid or not  
     342    if [ ! X${inca_UserChoices_xios_remap_output} = X ] ; then 
     343        IGCM_comp_modifyDefFile nonblocker inca.def xios_remap_output  ${inca_UserChoices_xios_remap_output} 
     344    else 
     345        IGCM_comp_modifyDefFile nonblocker inca.def xios_remap_output  y 
     346    fi 
     347 
     348    # inca.def : choose if we read input file with xios or netcdf  
     349    if [ ! X${inca_UserChoices_xios_read} = X ] ; then 
     350        IGCM_comp_modifyDefFile nonblocker inca.def xios_read  ${inca_UserChoices_xios_read} 
     351    else 
     352        IGCM_comp_modifyDefFile nonblocker inca.def xios_read  y 
     353    fi 
     354 
    334355    # inca.def : Activate reading of 10m wind in files if LMDZ_10m_winds=n in inca.card 
    335356    if [ ! X${inca_UserChoices_LMDZ_10m_winds} = X ] ; then 
     
    419440    #  <context id="inca" src="./context_inca.xml"/> 
    420441    echo '<context id="inca" src="./context_inca.xml"/>' > add.tmp 
     442    if [ -f context_input_inca.xml ] ; then 
     443        echo '<context id="inca" src="./context_input_inca.xml"/>' >> add.tmp 
     444    fi 
     445    if [ -f context_sflx_inca.xml ] ; then 
     446        echo '<context id="inca" src="./context_sflx_inca.xml"/>' >> add.tmp 
     447    fi 
     448    if [ -f context_co2_inca.xml ] ; then 
     449        echo '<context id="inca" src="./context_co2_inca.xml"/>' >> add.tmp 
     450    fi 
     451    if [ -f context_oxydants_inca.xml ] ; then 
     452        echo '<context id="inca" src="./context_oxydants_inca.xml"/>' >> add.tmp 
     453    fi 
     454    if [ -f context_start_inca.xml ] ; then 
     455        if  [ -f chem_start.nc ] ; then  
     456            echo '<context id="inca" src="./context_start_inca.xml"/>' >> add.tmp 
     457        fi  
     458    fi 
     459    if [ -f context_dust_inca.xml ] ; then 
     460        echo '<context id="inca" src="./context_dust_inca.xml"/>' >> add.tmp 
     461    fi 
     462    if [ -f context_winds_inca.xml ] ; then 
     463        echo '<context id="inca" src="./context_winds_inca.xml"/>' >> add.tmp 
     464    fi 
     465 
     466    if [ -f context_sad_inca.xml ] ; then 
     467        echo '<context id="inca" src="./context_sad_inca.xml"/>' >> add.tmp 
     468    fi 
     469 
     470 
    421471    cp iodef.xml iodef.xml.tmp 
    422472    sed -e "/COMPONENT CONTEXT/r add.tmp" \ 
     
    439489    fi 
    440490 
     491    # remove unlimited from time axis for allowed xios to read all values in one time  
     492    echo "retire UNLIMITED sur axe temps " 
     493    nccopy -u u10xios.nc tmp.nc 
     494    mv tmp.nc u10xios.nc 
     495    nccopy -u v10xios.nc tmp.nc 
     496    mv tmp.nc v10xios.nc 
     497    nccopy -u oxydants.nc tmp.nc 
     498    mv tmp.nc oxydants.nc 
     499    nccopy -u sflx_ANT_LR.nc tmp.nc 
     500    mv tmp.nc sflx_ANT_LR.nc 
     501    nccopy -u sflx_BBG_LR.nc tmp.nc 
     502    mv tmp.nc sflx_BBG_LR.nc 
     503    nccopy -u sflx_GHG_LR.nc tmp.nc 
     504    mv tmp.nc sflx_GHG_LR.nc 
     505    nccopy -u sflx_NAT_LR.nc tmp.nc 
     506    mv tmp.nc sflx_NAT_LR.nc 
     507    nccopy -u sflx_MISC_LR.nc tmp.nc 
     508    mv tmp.nc sflx_MISC_LR.nc 
     509    nccopy -u sad.nc tmp.nc 
     510    mv tmp.nc sad.nc 
     511 
     512 
     513    # Set interpolated output grid depending on resoultion, only if ICO component is set in config.card 
     514    if [ ! "X${config_ListOfComponents_ICO}" = "X" ] ; then    
     515        if [ ${RESOL_NBP} == 40  ] ; then 
     516            valuei=144 
     517            valuej=143 
     518        elif [ ${RESOL_NBP} == 80  ] ; then 
     519            valuei=360 
     520            valuej=180 
     521        elif [ ${RESOL_NBP} == 160  ] ; then 
     522            valuei=720 
     523            valuej=360 
     524    elif [ ${RESOL_NBP} == 320  ] ; then 
     525        valuei=1440 
     526        valuej=720 
     527        else 
     528            IGCM_debug_Exit "RESOL_NBP=${RESOL_NBP} is not yet implemented in drivers" 
     529            IGCM_debug_Verif_Exit 
     530        fi 
     531         
     532        IGCM_debug_Print 1 "Modify output grid parameters for current resolution in context_inca.xml" 
     533        cp context_inca.xml context_inca.xml.init 
     534        sed -e "s/ni_glo.*=.*\"144\"/ni_glo=\"${valuei}\"/" \ 
     535            -e "s/nj_glo.*=.*\"143\"/nj_glo=\"${valuej}\"/" \ 
     536            context_inca.xml.init > context_inca.xml 
     537         
     538    fi 
     539 
     540 
    441541    IGCM_debug_PopStack "CHM_Update" 
    442542} 
  • CONFIG/UNIFORM/v7/IPSLCM7/GENERAL/PARAM/inca.def

    r5479 r6545  
    22# parametres pour INCA 
    33####################################################################### 
     4#choose if we regrid or not output files on regular grid if we are running with ICO grid  
     5xios_remap_output=_AUTO_: DEFAULT=y 
     6#choose if we read input file with xios or not (mandatory for unstructured grid) 
     7xios_read=_AUTO_:DEFAULT=y 
    48#LMDZ_10m_winds=y --> use 10m wind from LMDZ, =n --> use 10m wind from output file 
    59LMDZ_10m_winds=_AUTO_ 
    6 10m_winds_method=_AUTO_ 
    710#choose if there is a feedback with the areosol effect 
    811feedb=_AUTO_ 
    9 #indicate if we are running with xios and/or ioipsl 
    10 XIOS_INCA_OK=_AUTO_ 
    11 IOIPSL_INCA_OK=_AUTO_ 
    12 #weibull 10m wind parameter / def 4 
    13 kref=_AUTO_: DEFAULT =4 
    1412#threshold 10m wind parameter / def 0.78 
    1513tref=_AUTO_: DEFAULT =0.78 
    1614#seasalt_correctif / def = 1  
    1715ss_corr=_AUTO_: DEFAULT =1  
    18 #sedimentation  
    19 multilayer_sediment=_AUTO_ 
    2016#coupled model with orchidee 
    2117CoupOrchInca=_AUTO_ 
     
    3430#choose which time interpolation you want to interpolate sflx file. ( 0 - 1 - 2) (no interpolation / point to point interpolation / Sheng & Zwiers interpolation)  
    3531emi_interp_time=_AUTO_ 
    36  
     32#activate the flag cmip_xml if you are running a CMIP experiment 
     33cmip_xml=_AUTO_: DEFAULT =n 
Note: See TracChangeset for help on using the changeset viewer.