Changeset 6209 for CONFIG/UNIFORM


Ignore:
Timestamp:
07/26/22 14:01:16 (20 months ago)
Author:
acosce
Message:

update config icolmdzorinca_v7 to run with last versions of dynamico, icosa_lmdz, inca and lmdz
modify compilation script to fit with new rad compilation option of lmdz

Location:
CONFIG/UNIFORM/v7/ICOLMDZORINCA_v7
Files:
20 added
5 edited

Legend:

Unmodified
Added
Removed
  • CONFIG/UNIFORM/v7/ICOLMDZORINCA_v7/GENERAL/DRIVER/inca.driver

    r5904 r6209  
    346346    fi 
    347347 
     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 
    348355    # inca.def : Activate reading of 10m wind in files if LMDZ_10m_winds=n in inca.card 
    349356    if [ ! X${inca_UserChoices_LMDZ_10m_winds} = X ] ; then 
     
    435442    if [ -f context_input_inca.xml ] ; then 
    436443        echo '<context id="inca" src="./context_input_inca.xml"/>' >> add.tmp 
    437         echo '<context id="inca" src="./context_start_inca.xml"/>' >> add.tmp 
     444    fi 
     445    if [ -f context_sflx_inca.xml ] ; then 
    438446        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 
    439452        echo '<context id="inca" src="./context_oxydants_inca.xml"/>' >> add.tmp 
    440         if [ X${CHEM} =  XGES ] ; then  
    441             echo '<context id="inca" src="./context_co2_bis_inca.xml"/>' >> add.tmp 
    442         fi 
    443  
    444     fi 
     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 
    445471    cp iodef.xml iodef.xml.tmp 
    446472    sed -e "/COMPONENT CONTEXT/r add.tmp" \ 
     
    471497    nccopy -u oxydants.nc tmp.nc 
    472498    mv tmp.nc oxydants.nc 
    473  
     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 
    474511 
    475512 
  • CONFIG/UNIFORM/v7/ICOLMDZORINCA_v7/GENERAL/DRIVER/lmdz.driver

    r6014 r6209  
    383383    if [ X${config_ListOfComponents_CHM} = Xinca ] ; then 
    384384        echo "Activate coupling to INCA, set type_trac=inca in run.def" 
    385         IGCM_comp_modifyDefFile blocker run.def type_trac inca 
     385        IGCM_comp_modifyDefFile blocker run.def type_trac "lmdz|inca" 
    386386        IGCM_comp_modifyDefFile blocker run.def iflag_phytrac 1 
    387387    elif [ X${config_ListOfComponents_CHM} = Xreprobus ] ; then 
    388388        echo "Activate coupling to REPROBUS, set type_trac=repr in run.def" 
    389         IGCM_comp_modifyDefFile blocker run.def type_trac repr 
     389        IGCM_comp_modifyDefFile blocker run.def type_trac "lmdz|repr" 
    390390        IGCM_comp_modifyDefFile blocker run.def config_inca none 
    391391        IGCM_comp_modifyDefFile blocker run.def iflag_phytrac 1 
    392392    elif [ X${config_UserChoices_ConfigType} = XESMCO2 ] ; then  
    393393        echo "ESM config, set type_trac=co2i in run.def" 
    394         IGCM_comp_modifyDefFile blocker run.def type_trac co2i 
     394        IGCM_comp_modifyDefFile blocker run.def type_trac "lmdz|co2i" 
    395395        IGCM_comp_modifyDefFile blocker run.def config_inca none 
    396396        IGCM_comp_modifyDefFile blocker run.def iflag_phytrac 1   
    397397    elif [ X${lmdz_UserChoices_LMDZ_strataero} = Xy ] ; then 
    398398        echo "No coupling to chemistry model but it is a LMDZ STRATAER configuration, set type_trac=coag in run.def" 
    399         IGCM_comp_modifyDefFile blocker run.def type_trac coag 
     399        IGCM_comp_modifyDefFile blocker run.def type_trac "lmdz|coag" 
    400400        IGCM_comp_modifyDefFile blocker run.def config_inca none 
    401401        IGCM_comp_modifyDefFile blocker run.def iflag_phytrac 1   
  • CONFIG/UNIFORM/v7/ICOLMDZORINCA_v7/GENERAL/PARAM/inca.def

    r5903 r6209  
    44#choose if we regrid or not output files on regular grid if we are running with ICO grid  
    55xios_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 
    68#LMDZ_10m_winds=y --> use 10m wind from LMDZ, =n --> use 10m wind from output file 
    79LMDZ_10m_winds=_AUTO_ 
  • CONFIG/UNIFORM/v7/ICOLMDZORINCA_v7/GENERAL/PARAM/nudging_dynamico.xml

    r6060 r6209  
    44<!-- =========================================================================================================== --> 
    55<context id="icosagcm" > 
     6 
     7 
     8  <!-- output forcing field for nudging  --> 
     9 
     10  <file_definition> 
     11 
     12      <file id="nudging_forcing" enabled="false" output_freq="3h" > 
     13         <field_group operation="instant" domain_ref="domain_forcing" freq_offset="0ts"> 
     14            <field field_ref="ulon_forcing" name="u"/> 
     15            <field field_ref="ulat_forcing" name="v"/> 
     16            <field field_ref="temp_forcing" name="t"/> 
     17            <field field_ref="ps_forcing" name="sp" /> 
     18            <field field_ref="p_forcing" name="pressure"/> 
     19            <field field_ref="H2O-g_forcing"  name="q"/> 
     20            <field field_ref="H2O-l_forcing"  name="clwc"/> 
     21            <field field_ref="H2O-s_forcing"  name="ciwc"/> 
     22         </field_group> 
     23      </file >  
     24 
     25   </file_definition> 
     26    
     27   <field_definition> 
     28  
     29      <field_group domain_ref="i"> 
     30        <field id="ulon_forcing"  axis_ref="lev"/> 
     31        <field id="ulat_forcing"  axis_ref="lev"/> 
     32        <field id="temp_forcing"  axis_ref="lev"/> 
     33        <field id="ps_forcing" /> 
     34        <field id="p_forcing" axis_ref="lev"/> 
     35        <field id="H2O-g_forcing"   axis_ref="lev"/> 
     36        <field id="H2O-l_forcing"   axis_ref="lev"/> 
     37        <field id="H2O-s_forcing"   axis_ref="lev"/> 
     38      </field_group>    
     39    
     40   </field_definition> 
     41 
     42   <domain_definition> 
     43     <domain id="domain_forcing" type="rectilinear" > 
     44       <generate_rectilinear_domain id="nudging_zone"  /> 
     45       <interpolate_domain order="2"/> 
     46     </domain> 
     47   </domain_definition> 
     48 
     49 
     50 
     51 
     52<!-- =========================================================================================================== --> 
     53<!-- nudging configuration --> 
    654 
    755  <file_definition> 
     
    2573 
    2674 
    27        <file id="nudging_in" name="ERA5" enabled="false" output_freq="1h" mode="read" record_offset="1" time_counter_name="time"> 
     75       <file id="nudging_in" name="nudging_forcing" enabled="false" output_freq="1h" mode="read" record_offset="1" time_counter_name="time" cyclic="true"> 
    2876         <field_group   operation="instant" freq_offset="1ts" > 
    2977            <field id="ps_nudged_read"     name="sp"     domain_ref="domain_nudged" /> 
     78            <field id="p_nudged_read"       name="pressure"     domain_ref="domain_nudged" axis_ref="axis_nudged" enabled="false" /> 
    3079<!-- 
    3180            <field id="ulon_nudged_read"   name="u"      domain_ref="domain_nudged" axis_ref="axis_nudged" /> 
     
    4089       </file> 
    4190 
    42        <file id="nudging_in0" name="ERA5" enabled="false" output_freq="1000y" mode="read" record_offset="0" time_counter_name="time"> 
     91       <file id="nudging_in0" name="nudging_forcing" enabled="false" output_freq="1000y" mode="read" record_offset="0" time_counter_name="time"> 
    4392         <field_group   operation="once" freq_offset="1ts" > 
    4493            <field id="ps_nudged_read0"     name="sp"      domain_ref="domain_nudged" /> 
     94            <field id="p_nudged_read0"       name="pressure"     domain_ref="domain_nudged" axis_ref="axis_nudged" enabled="false"/> 
    4595<!-- 
    4696            <field id="ulon_nudged_read0"   name="u"       domain_ref="domain_nudged" axis_ref="axis_nudged" /> 
     
    165215     </axis>    
    166216 
     217     <axis id="nudged_vert_interp_src_dest0"  axis_ref="lev"> 
     218       <interpolate_axis order="1" coordinate_src="p_nudged_horiz_interp0" coordinate_dst="p_nudged0" /> 
     219     </axis>    
     220 
    167221     <axis id="nudged_vert_interp_dest"  axis_ref="lev"> 
    168222       <interpolate_axis order="1" coordinate_dst="p_nudged" /> 
  • CONFIG/UNIFORM/v7/ICOLMDZORINCA_v7/compile_icolmdzorinca.sh

    r6185 r6209  
    4040# Default netcdf_lib is used for XIOS but can be change by argument 
    4141netcdf_lib="" 
     42#radiative code compilation option  
     43rad="rrtm" 
     44opt_rad="" 
    4245 
    4346# Output text file for compilation of each component 
     
    6063./compile_config [Options]  
    6164 
    62 Options: -full, -regular_latlon, -debug, -dev, -prod(default) 
     65Options: -full, -regular_latlon, -debug, -dev, -prod(default) -opt_rad 
    6366 
    6467Example 1: Default compilation of [DYNAMICO-LMDZ-ORCHIDEE-INCA GES with XIOS and IOIPSL] and [LMDZ(144x142x79)-ORCHIDEE-INCA GES with XIOS and IOIPSL] and [create_etat0_limit] 
     
    8689Example 8: compile only create_etat0_limit  
    8790./compile_icolmdzorinca.sh -ce0l_only 
     91 
     92Example 9: choose radiative scheme for LMDZ (oldrad/rrtm/ecrad) Default is rrtm 
     93./compile_icolmdzorinca.sh -rad ecrad 
    8894 
    8995end_help 
     
    106112        "-ce0l_only")       ce0l_only=yes  ; shift ;; 
    107113        "-netcdf_lib_seq")  netcdf_lib="--netcdf_lib netcdf4_seq"; shift ;; 
     114        "-rad")             rad=$2; shift;; 
    108115        "-chimie")          optchimie=$2; shift ; shift;; 
    109116 
     
    120127echo >> $outfile 
    121128 
     129 
     130# check lmdz svn version  
     131lmdzsvn=`svnversion ../../modeles/LMDZ | egrep -o "[0-9]+" | awk 'NR==1'` 
    122132 
    123133### Read host dependent default values 
     
    348358## 2.7 Compile LMDZ for regular latlon configuration 
    349359 
     360 
     361# Option de compilation du rayonnement : depend de $lmdzsvn ><= r4185 
     362case $rad in 
     363    oldrad)  opt_rad="" ;; 
     364    rrtm)    if [ $lmdzsvn -le 4185 ] ; then opt_rad="-rrtm true" ; else opt_rad="-rad rrtm" ; fi ;; 
     365    ecrad)   opt_rad="-rad ecrad" ;; 
     366    *) echo Only oldrad rrtm ecrad for rad option ; exit 
     367esac 
     368if [ $lmdzsvn -le 4185 -a $rad = "ecrad" ] ; then echo "ecrad only available for LMDZ rev starting with 4186 " ; exit ; fi 
     369 
     370 
    350371# Find executable suffix 
    351372if [ $parallel == seq ] || [ $parallel == none ] ; then 
    352     suffix=_${resol_atm}_phylmd_seq_orch_inca.e 
     373 
     374    if [ $lmdzsvn -ge 4186 ] ; then  
     375        suffix=_${resol_atm}_phylmd_${rad}_seq_orch_inca.e 
     376    else 
     377        suffix=_${resol_atm}_phylmd_seq_orch_inca.e 
     378    fi 
    353379else 
    354     suffix=_${resol_atm}_phylmd_para_mem_orch_inca.e 
     380    if [ $lmdzsvn -ge 4186 ] ; then  
     381        suffix=_${resol_atm}_phylmd_${rad}_para_mem_orch_inca.e 
     382    else 
     383        suffix=_${resol_atm}_phylmd_para_mem_orch_inca.e 
     384    fi 
    355385fi 
    356386echo gcm suffix = $suffix 
     
    375405        rm -f .lock 
    376406    fi 
    377     echo ./makelmdz_fcm -d ${resol_atm} -p lmd -rrtm true -$optmode -mem -parallel $parallel -io xios -v orchidee2.1 -chimie INCA -arch $fcm_arch -j 8 $full_lmdz gcm    >> $outfile  
    378     ./makelmdz_fcm -d ${resol_atm} -p lmd -rrtm true -$optmode -mem -parallel $parallel -io xios -v orchidee2.1 -chimie INCA -arch $fcm_arch -j 8 $full_lmdz gcm    >> $outfile 2>&1 
     407    echo ./makelmdz_fcm -d ${resol_atm} -p lmd $opt_rad -$optmode -mem -parallel $parallel -io xios -v orchidee2.1 -chimie INCA -arch $fcm_arch -j 8 $full_lmdz gcm    >> $outfile  
     408    ./makelmdz_fcm -d ${resol_atm} -p lmd $opt_rad -$optmode -mem -parallel $parallel -io xios -v orchidee2.1 -chimie INCA -arch $fcm_arch -j 8 $full_lmdz gcm    >> $outfile 2>&1 
    379409    # Test if compiling finished 
    380410    if [[ $? != 0 ]] ; then 
     
    407437    echo >> $outfile ; echo " NOW COMPILE CE0L OF LMDZ. Resolution = ${resol_atm}"   >> $outfile  
    408438     
    409     echo ./makelmdz_fcm -d ${resol_atm} -p lmd -rrtm true -$optmode -mem -parallel $parallel -io xios -v orchidee2.1 -chimie INCA -arch $fcm_arch -j 8 $full_lmdz ce0l    >> $outfile  
    410     ./makelmdz_fcm -d ${resol_atm} -p lmd -rrtm true -$optmode -mem -parallel $parallel -io xios -v orchidee2.1 -chimie INCA -arch $fcm_arch -j 8 $full_lmdz ce0l    >> $outfile 2>&1 
     439    echo ./makelmdz_fcm -d ${resol_atm} -p lmd ${opt_rad} -$optmode -mem -parallel $parallel -io xios -v orchidee2.1 -chimie INCA -arch $fcm_arch -j 8 $full_lmdz ce0l    >> $outfile  
     440    ./makelmdz_fcm -d ${resol_atm} -p lmd ${opt_rad} -$optmode -mem -parallel $parallel -io xios -v orchidee2.1 -chimie INCA -arch $fcm_arch -j 8 $full_lmdz ce0l    >> $outfile 2>&1 
    411441    # Test if compiling finished 
    412442    if [[ $? != 0 ]] ; then 
Note: See TracChangeset for help on using the changeset viewer.