Changeset 1416 for trunk


Ignore:
Timestamp:
11/20/17 17:03:54 (6 years ago)
Author:
aclsce
Message:
  • Modified to run CMIP6 configurations : use of dr2xml_$comp.xml files.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/libIGCM_comp/libIGCM_comp.ksh

    r1415 r1416  
    15301530    ${comp}_Update 
    15311531 
    1532     set -vx 
    1533  
    15341532    # Read TimeSeries information from XML files, prepare TS directories and do modifications in timeseries_def_${compname}.xml 
    15351533    if [ -f timeseries_def_${compname}.xml ]; then 
     
    15651563 
    15661564      ${libIGCM}/libIGCM_post/xios_parser.py tsquery --file dr2xml_${compname}.xml > dr2xml.temp.${compname}.txt 
    1567       for line in $( cat ts.temp.${compname}.txt ); do 
    1568         output_freq=$( echo ${line} | awk -F "," '{print $1}' | awk -F "=" '{print $2}' ) 
    1569         name=$(        echo ${line} | awk -F "," '{print $2}' | awk -F "=" '{print $2}' ) 
    1570  
    1571         IGCM_debug_Print 1 "Changing in dr2xml_${compname}.xml this string : ${name} by this one ${CMIP6_DIR}/${name}" 
    1572         sed -i -e 's:${name}:${CMIP6_DIR}/$name:g' dr2xml_${compname}.xml 
    1573  
    1574       done 
    1575     fi 
    1576  
    1577     set +vx 
     1565 
     1566      while read line   
     1567      do   
     1568          output_freq=$( echo ${line} | awk -F "," '{print $1}' | awk -F "=" '{print $2}' ) 
     1569          name=$(        echo ${line} | awk -F "," '{print $2}' | awk -F "=" '{print $2}' | awk -F "[ ]" '{print $2}' ) 
     1570          IGCM_debug_Print 1 "Changing in dr2xml_${compname}.xml this string : ${name} by this one ${CMIP6_DIR}/${name}" 
     1571          sed -i -e "s:\"${name}:\"${CMIP6_DIR}/${name}:g" dr2xml_${compname}.xml 
     1572      done < dr2xml.temp.${compname}.txt 
     1573    fi 
    15781574 
    15791575  done 
Note: See TracChangeset for help on using the changeset viewer.