Ignore:
Timestamp:
01/22/18 16:46:08 (6 years ago)
Author:
sdipsl
Message:
  • optimize the way we drive where dr2xml_${compname}.xml write files
File:
1 edited

Legend:

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

    r1419 r1420  
    15621562      eval CMIP6_DIR=\${CMIP6_BUF_${comp}} 
    15631563 
    1564       ${libIGCM}/libIGCM_post/xios_parser.py tsquery --file dr2xml_${compname}.xml > dr2xml.temp.${compname}.txt 
    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 
     1564      # Modify path from dr2xml_{compname}.xml 
     1565      ${libIGCM}/libIGCM_post/xios_parser.py -v modifyPath --newPath ${CMIP6_DIR} --file dr2xml_${compname}.xml 
     1566 
     1567      # Overwrite the original file 
     1568      IGCM_sys_Mv modified.dr2xml_${compname}.xml dr2xml_${compname}.xml 
    15741569 
    15751570  done 
Note: See TracChangeset for help on using the changeset viewer.