Ignore:
Timestamp:
05/11/16 17:34:22 (8 years ago)
Author:
aclsce
Message:
  • Added config.card LongName? as global attribute of output files of v6 configurations.
Location:
CONFIG/UNIFORM/v6/LMDZOR_v6/GENERAL/DRIVER
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • CONFIG/UNIFORM/v6/LMDZOR_v6/GENERAL/DRIVER/lmdz.driver

    r2755 r2833  
    525525        sed -e "/COMPONENT CONTEXT/r add.tmp" iodef.xml.tmp > iodef.xml 
    526526        rm iodef.xml.tmp add.tmp 
     527 
     528        #Long Name as global attribute (if LongName is not empty) 
     529        if [ ! "X${config_UserChoices_LongName}" = "X" ] ; then 
     530            listfile=$(ls file_def*lmdz.xml) 
     531            echo "<variable id=\"LongName\" type=\"string\">${config_UserChoices_LongName}</variable>" > add.tmp 
     532            for file in ${listfile} 
     533            do 
     534                cp ${file} ${file}.tmp 
     535                sed -e "/<file id/r add.tmp" \ 
     536                    ${file}.tmp > ${file} 
     537                rm ${file}.tmp  
     538            done 
     539            rm add.tmp 
     540        fi 
    527541 
    528542        # Set ok_all_xml=y in run.def 
  • CONFIG/UNIFORM/v6/LMDZOR_v6/GENERAL/DRIVER/orchidee.driver

    r2757 r2833  
    108108    rm iodef.xml.tmp add.tmp 
    109109 
     110    #Long Name as global attribute (if LongName is not empty) 
     111        if [ ! "X${config_UserChoices_LongName}" = "X" ] ; then 
     112            listfile=$(ls file_def*orchidee.xml) 
     113            echo "<variable id=\"LongName\" type=\"string\">${config_UserChoices_LongName}</variable>" > add.tmp 
     114            for file in ${listfile} 
     115            do 
     116                cp ${file} ${file}.tmp 
     117                sed -e "/<file id/r add.tmp" \ 
     118                    ${file}.tmp > ${file} 
     119                rm ${file}.tmp  
     120            done  
     121            rm add.tmp 
     122        fi 
     123 
    110124    IGCM_debug_PopStack "SRF_Update" 
    111125} 
Note: See TracChangeset for help on using the changeset viewer.