Ignore:
Timestamp:
06/18/20 07:34:54 (4 years ago)
Author:
aclsce
Message:

Added functionality to use "CMIP6 light workflow" by activating dr2xmlIPSL variable in config.card.

File:
1 edited

Legend:

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

    r1520 r1535  
    15771577    # Read TimeSeries information from XML files, prepare CMIP6 TS directories and do modifications in dr2xml_${compname}.xml 
    15781578    if [ -f dr2xml_${compname}.xml ]; then 
    1579       eval IGCM_sys_Mkdir \${CMIP6_BUF_${comp}} 
    1580       eval CMIP6_DIR=\${CMIP6_BUF_${comp}} 
    1581       # Modify path from dr2xml_{compname}.xml 
    1582       if [ X${config_Post_dr2xmlFilePrefix} = XTRUE ]; then 
    1583         ${libIGCM}/libIGCM_post/xios_parser.py -v modifyPath --newPath ${CMIP6_DIR} --filePrefix ${config_UserChoices_JobName} --file dr2xml_${compname}.xml 
    1584       else 
    1585         ${libIGCM}/libIGCM_post/xios_parser.py -v modifyPath --newPath ${CMIP6_DIR} --file dr2xml_${compname}.xml 
     1579      if ( [ X"$( echo ${config_UserChoices_ExpType} | grep CMIP6 )" != "X" ] || [ X${config_Post_dr2xmlIPSL} = XTRUE ] ) ; then 
     1580        eval IGCM_sys_Mkdir \${CMIP6_BUF_${comp}} 
     1581        eval CMIP6_DIR=\${CMIP6_BUF_${comp}} 
     1582        # Modify path from dr2xml_{compname}.xml 
     1583        if [ X${config_Post_dr2xmlIPSL} = XTRUE ]; then 
     1584          ${libIGCM}/libIGCM_post/xios_parser.py -v modifydr2xmlIPSL --newPath ${CMIP6_DIR} --splitLastDate ${config_UserChoices_DateEnd} --JobName ${config_UserChoices_JobName} --ModelName ${config_UserChoices_ModelName} --ModelVersion ${config_UserChoices_LongName} --file dr2xml_${compname}.xml 
     1585        else 
     1586          ${libIGCM}/libIGCM_post/xios_parser.py -v modifyPath --newPath ${CMIP6_DIR} --file dr2xml_${compname}.xml 
     1587        fi 
     1588        # Overwrite the original file 
     1589        IGCM_sys_Mv modified.dr2xml_${compname}.xml dr2xml_${compname}.xml 
    15861590      fi 
    1587       # Overwrite the original file 
    1588       IGCM_sys_Mv modified.dr2xml_${compname}.xml dr2xml_${compname}.xml 
    15891591    fi 
    15901592  done 
Note: See TracChangeset for help on using the changeset viewer.