Ignore:
Timestamp:
09/26/14 11:46:12 (7 years ago)
Author:
aclsce
Message:

Modifed to have same handling of XIOS xml files as in LMDZOR configuration.

File:
1 edited

Legend:

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

    r2315 r2343  
    11#!/bin/ksh 
    2  
    3 function XIOS_sed_xml 
    4 { 
    5 # Usage : XIOS_sed_xml xml_file attribute value  
    6 #         In file xml_file modify at the line containing id="attribute" the attribute value ">value<"  
    7     IGCM_debug_PushStack "XIOS_sed_xml" 
    8     # Test if the fichier exist 
    9     if [ ! -f ${1} ] ; then 
    10         echo "WARNING : ${1} file does not exist. Following will not be done : XIOS_sed_xml : ${1} ${2} ${3}" 
    11         IGCM_debug_PopStack "XIOS_sed_xml" 
    12         return 
    13     fi 
    14     sed -e "s/\(<[^\"]*\"${2}\".*>\)\([^<]*\)\(<[^>]*\)/\1${3}\3/" ${1} > ${1}.tmp 
    15     RET=$? 
    16     echo "XIOS_sed_xml" : ${1} ${2} ${3} 
    17     \mv ${1}.tmp ${1} 
    18     IGCM_debug_PopStack "XIOS_sed_xml" 
    19     return $RET 
    20 } 
    21  
    222#----------------------------------- 
    233function IOS_Initialize 
     
    3717    echo UPDATE IOS !!! 
    3818# Activate server mode 
    39     XIOS_sed_xml iodef.xml using_server true 
     19    IGCM_comp_modifyXmlfile force iodef.xml using_server NONE true 
    4020# If lmdz_UserChoices_XIOS=y add LMDZ as component id : 
    4121    if [ X${lmdz_UserChoices_XIOS}  = Xy ] ; then 
    42         XIOS_sed_xml iodef.xml oasis_codes_id LMDZ,oceanx 
     22        IGCM_comp_modifyXmlFile force iodef.xml oasis_codes_id NONE LMDZ,oceanx 
    4323    fi  
    4424    if [ -f namcouple ] ; then 
Note: See TracChangeset for help on using the changeset viewer.