Ignore:
Timestamp:
09/15/21 14:25:46 (3 years ago)
Author:
acosce
Message:

add new flag in inca "xios_read" allow to read input file with xios (xios_read=y) (files on dynamical lmdz grid) or with netcdf (xios_read=n) (files on physical lmdz grid)
add for each chemistry configuration a card inca.Card.xios with files used by xios_read=y (by default xios_read=n on inca.card)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CONFIG/UNIFORM/v6/LMDZORINCA_v6.2/GENERAL/DRIVER/inca.driver

    r4971 r5919  
    332332 
    333333 
     334    # inca.def : choose if we read input file with xios or netcdf  
     335    if [ ! X${inca_UserChoices_xios_read} = X ] ; then 
     336        IGCM_comp_modifyDefFile nonblocker inca.def xios_read  ${inca_UserChoices_xios_read} 
     337    else 
     338        IGCM_comp_modifyDefFile nonblocker inca.def xios_read  y 
     339    fi 
     340 
    334341    # inca.def : Activate reading of 10m wind in files if LMDZ_10m_winds=n in inca.card 
    335342    if [ ! X${inca_UserChoices_LMDZ_10m_winds} = X ] ; then 
     
    419426    #  <context id="inca" src="./context_inca.xml"/> 
    420427    echo '<context id="inca" src="./context_inca.xml"/>' > add.tmp 
     428 
     429    if [ -f context_input_inca.xml ] ; then 
     430        echo '<context id="inca" src="./context_input_inca.xml"/>' >> add.tmp 
     431    fi 
     432    if [ -f context_sflx_inca.xml ] ; then 
     433        echo '<context id="inca" src="./context_sflx_inca.xml"/>' >> add.tmp 
     434    fi 
     435    if [ -f context_co2_inca.xml ] ; then 
     436        echo '<context id="inca" src="./context_co2_inca.xml"/>' >> add.tmp 
     437    fi 
     438    if [ -f context_oxydants_inca.xml ] ; then 
     439        echo '<context id="inca" src="./context_oxydants_inca.xml"/>' >> add.tmp 
     440    fi 
     441    if [ -f context_start_inca.xml ] ; then 
     442        if  [ -f chem_start.nc ] ; then  
     443            echo '<context id="inca" src="./context_start_inca.xml"/>' >> add.tmp 
     444        fi  
     445    fi 
     446    if [ -f context_dust_inca.xml ] ; then 
     447        echo '<context id="inca" src="./context_dust_inca.xml"/>' >> add.tmp 
     448    fi 
     449    if [ -f context_winds_inca.xml ] ; then 
     450        echo '<context id="inca" src="./context_winds_inca.xml"/>' >> add.tmp 
     451    fi 
     452 
    421453    cp iodef.xml iodef.xml.tmp 
    422454    sed -e "/COMPONENT CONTEXT/r add.tmp" \ 
     
    439471    fi 
    440472 
     473    # remove unlimited from time axis for allowed xios to read all values in one time  
     474    echo "retire UNLIMITED sur axe temps " 
     475    nccopy -u u10xios.nc tmp.nc 
     476    mv tmp.nc u10xios.nc 
     477    nccopy -u v10xios.nc tmp.nc 
     478    mv tmp.nc v10xios.nc 
     479    nccopy -u oxydants.nc tmp.nc 
     480    mv tmp.nc oxydants.nc 
     481 
     482 
    441483    IGCM_debug_PopStack "CHM_Update" 
    442484} 
Note: See TracChangeset for help on using the changeset viewer.