Ignore:
Timestamp:
09/17/22 15:29:59 (22 months ago)
Author:
ssenesi
Message:

Improve handling Cesmep

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/libIGCM_CESMEP/ins_job

    r1554 r1559  
    660660IGCM_card_DefineVariableFromOption ${prefix}config.card Post Cesmep 
    661661 
    662 # Compute mail adress - inspired by libIGCM_post.ksh - should be turned in a function  
    663 if [ ! -z ${config_UserChoices_MailName} ] ; then 
    664     MailAdress=${config_UserChoices_MailName} 
    665 elif [ -f ~/.forward ] ; then 
    666     MailAdress=$( cat ~/.forward ) 
    667 else 
    668     MailAdress=${USER} 
    669 fi 
    670  
    671 # 
    672662if [ ${config_Post_Cesmep} != FALSE ]; then 
    673     if [ X"${SYSTEM}" == "Xirene" ] ; then 
    674        IGCM_card_DefineVariableFromOption ${prefix}config.card Post CesmepCode 
    675        IGCM_card_DefineVariableFromOption ${prefix}config.card Post CesmepComparison 
    676        IGCM_card_DefineVariableFromOption ${prefix}config.card UserChoices DateBegin 
    677        # Need R_SAVE  
    678        IGCM_config_CommonConfiguration ${prefix}config.card 
    679        ${config_Post_CesmepCode}/libIGCM_install.sh $(pwd)/${prefix} \ 
     663    IGCM_config_CommonConfiguration ${prefix}config.card 
     664    # Compute mail adress - inspired by libIGCM_post.ksh - should be turned in a function  
     665    if [ ! -z ${config_UserChoices_MailName} ] ; then 
     666        MailAdress=${config_UserChoices_MailName} 
     667    elif [ -f ~/.forward ] ; then 
     668        MailAdress=$( cat ~/.forward ) 
     669    else 
     670        MailAdress=${USER} 
     671    fi 
     672    # 
     673    components="," 
     674    for comp in ${config_ListOfComponents[*]} ; do 
     675        components=${components}${comp}, ; 
     676    done 
     677    if [ X"${SYSTEM}" == "Xirene" ] || [ X"${SYSTEM}" == "Xirene-amd" ] ; then 
     678        IGCM_card_DefineVariableFromOption ${prefix}config.card UserChoices DateBegin 
     679        ${config_Post_CesmepCode}/libIGCM_install.sh $(pwd)/${prefix} \ 
    680680                   ${config_Post_CesmepComparison} $JobName ${R_SAVE} ${ProjectID} \ 
    681                    ${MailAdress} ${config_UserChoices_DateBegin} ${config_Post_Cesmep}  
     681                   ${MailAdress} ${config_UserChoices_DateBegin//-/} \ 
     682                   ${config_Post_Cesmep} ${CesmepPeriod} ${config_Post_CesmepSlices} $components 
    682683   else 
    683        echo "\nERROR Cannot yet handle CESMEP on this computer system" 
     684       echo -e "\nERROR Cannot (yet) handle CESMEP atlas on this computer system" 
    684685       echo "=> Variable Cesmep in config.card's section Post must be set to FALSE" 
    685686       exit 5 
Note: See TracChangeset for help on using the changeset viewer.