Changeset 2833


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
Files:
9 edited

Legend:

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

    r2758 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/IPSLCM6/GENERAL/DRIVER/opa9.driver

    r2819 r2833  
    177177    rm iodef.xml.tmp add.tmp 
    178178 
     179    #Long Name as global attribute (if LongName is not empty) 
     180    if [ ! "X${config_UserChoices_LongName}" = "X" ] ; then 
     181        listfile=$(ls file_def*nemo.xml) 
     182        echo "<variable id=\"LongName\" type=\"string\">${config_UserChoices_LongName}</variable>" > add.tmp 
     183        for file in ${listfile} 
     184        do 
     185            cp ${file} ${file}.tmp 
     186            sed -e "/<file id/r add.tmp" \ 
     187                ${file}.tmp > ${file} 
     188            rm ${file}.tmp  
     189        done  
     190        rm add.tmp 
     191    fi 
     192 
    179193    IGCM_debug_PopStack "OCE_Update" 
    180194} 
  • CONFIG/UNIFORM/v6/IPSLCM6/GENERAL/DRIVER/orchidee.driver

    r2758 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} 
  • CONFIG/UNIFORM/v6/LMDZORINCA_v6/GENERAL/DRIVER/inca.driver

    r2735 r2833  
    144144    fi 
    145145 
     146    #Long Name as global attribute (if LongName is not empty) 
     147    if [ ! "X${config_UserChoices_LongName}" = "X" ] ; then 
     148        listfile=$(ls file_def*inca.xml) 
     149        echo "<variable id=\"LongName\" type=\"string\">${config_UserChoices_LongName}</variable>" > add.tmp 
     150        for file in ${listfile} 
     151        do 
     152            cp ${file} ${file}.tmp 
     153            sed -e "/<file id/r add.tmp" \ 
     154                ${file}.tmp > ${file} 
     155            rm ${file}.tmp  
     156        done 
     157        rm add.tmp 
     158    fi 
     159 
    146160    IGCM_debug_PopStack "CHM_Update" 
    147161} 
  • CONFIG/UNIFORM/v6/LMDZORINCA_v6/GENERAL/DRIVER/lmdz.driver

    r2770 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/LMDZORINCA_v6/GENERAL/DRIVER/orchidee.driver

    r2770 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} 
  • 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} 
  • CONFIG/UNIFORM/v6/diff_configurations.ksh

    r2818 r2833  
    1717ConfigList=`ls |grep ${ConfigFamily} |grep -v out` 
    1818ConfigList=$ConfigList" IPSLCM6 IPSLCM6CHT" 
    19 ConfigList="IPSLCM6 LMDZORINCA_v6 LMDZOR_v6" 
    2019verbose=no 
    2120echo All configurations to tests : $ConfigList 
Note: See TracChangeset for help on using the changeset viewer.