Ignore:
Timestamp:
12/13/18 11:56:52 (5 years ago)
Author:
jgipsl
Message:

Now take xml files for DYNAMICO from folder modeles/DYNAMICO/xml. The configuration, icluding previous commit [4189] can only be used with DYANMICO/trunk rev 793 or later.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CONFIG/UNIFORM/v7/ICOLMDZOR_v7/GENERAL/DRIVER/dynamicolmdz.driver

    r4180 r4190  
    8888    fi 
    8989 
     90 
     91 
     92    # Add include of context xml files for LMDZ and DYNAMICO in iodef.xml 
     93    # In iodef.xml add on the next line after "COMPONENT CONTEXT" 
     94    echo '<context id="LMDZ" src="./context_lmdz.xml"/>' > add.tmp 
     95    echo '<context id="icosagcm" src="./context_dynamico.xml"/>' >> add.tmp 
     96 
     97    # Add inclusion of file context_input_lmdz.xml if this file exists 
     98    if [ -f context_input_lmdz.xml ] ; then 
     99        echo '<context id="LMDZ" src="./context_input_lmdz.xml"/>' >> add.tmp 
     100    fi 
     101    # Add inclusion of file context_input_dynamico.xml if this file exists 
     102    if [ -f context_input_dynamico.xml ] ; then 
     103        echo '<context id="icosagcm" src="./context_input_dynamico.xml"/>' >> add.tmp 
     104    fi 
     105 
     106 
     107    # Include xml files for output configuration if running with workflow CMIP6 
     108    if [ X"$( echo ${config_UserChoices_ExpType} | grep CMIP6 )" != "X" ] ; then 
     109      echo '<context id="LMDZ" src="./ping_lmdz.xml"/>' >> add.tmp 
     110      echo '<context id="LMDZ" src="./dr2xml_lmdz.xml"/>' >> add.tmp 
     111    fi 
     112    cp iodef.xml iodef.xml.tmp 
     113    sed -e "/COMPONENT CONTEXT/r add.tmp" iodef.xml.tmp > iodef.xml 
     114    rm iodef.xml.tmp add.tmp 
     115 
     116    # Add a Long Name as global attribute in output files if LongName is set in config.card 
     117    if [ ! "X${config_UserChoices_LongName}" = "X" ] ; then 
     118      listfile=$(ls file_def*lmdz.xml) 
     119      echo "<variable id=\"LongName\" type=\"string\">${config_UserChoices_LongName}</variable>" > add.tmp 
     120      for file in ${listfile} ; do 
     121          cp ${file} ${file}.tmp 
     122          sed -e "/<file id/r add.tmp" \ 
     123          ${file}.tmp > ${file} 
     124          rm ${file}.tmp  
     125      done 
     126      rm add.tmp 
     127    fi 
     128 
     129 
    90130    IGCM_debug_PopStack "ATM_Update" 
    91131} 
Note: See TracChangeset for help on using the changeset viewer.