Changeset 1598 for trunk/libIGCM/ins_job


Ignore:
Timestamp:
09/20/23 15:28:50 (8 months ago)
Author:
falletti
Message:

Integration of C-ESM-EP (post-processing) in libIGCM. From the work done by Stephane Senesi. To be activated in config.card [Post] with the keyword Cesmep (default: FALSE).

Location:
trunk/libIGCM
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM

    • Property svn:ignore set to
      *.job
  • trunk/libIGCM/ins_job

    r1597 r1598  
    702702   
    703703fi 
     704# 
     705# Install a light copy of C-ESM-EP in SUBMIT_DIR/Cesmep and create a 
     706# C-ESM-EP launch script there. 
     707# 
     708[ ${new_struct?} == yes ] && prefix="$JobName/"   
     709IGCM_card_DefineVariableFromOption ${prefix}config.card Post Cesmep 
     710if ( [ X${config_Post_Cesmep} = X${NULL_STR} ] || [ X${config_Post_Cesmep} = XNONE ] || \ 
     711         [ X${config_Post_Cesmep} = X ] ) ; then 
     712    config_Post_Cesmep=FALSE 
     713fi 
     714if [ ${config_Post_Cesmep} != FALSE ]; then 
     715    IGCM_config_CommonConfiguration ${prefix}config.card 
     716    if [ x"${config_Post_CesmepMail}" == x"TRUE" ] || [ x"${config_Post_CesmepMail}" == x"True" ] ; then 
     717        # Compute mail adress - inspired by libIGCM_post.ksh - should be turned in a function  
     718        if [ ! -z ${config_UserChoices_MailName} ] ; then 
     719            MailAdress=${config_UserChoices_MailName} 
     720        elif [ -f ~/.forward ] ; then 
     721            MailAdress=$( cat ~/.forward ) 
     722        else 
     723            MailAdress=${USER} 
     724        fi 
     725    else 
     726        MailAdress=None 
     727    fi 
     728    # 
     729    components="," 
     730    for comp in ${config_ListOfComponents[*]} ; do 
     731        components=${components}${comp}, ; 
     732    done 
     733    if ( [ X"${SYSTEM}" == X"irene" ]    || [ X"${SYSTEM}" == X"irene-amd" ] || \ 
     734         [ X"${SYSTEM}" == X"mesoipsl" ] || [ X"${SYSTEM}" == X"jeanzay" ] ) ; then 
     735        IGCM_card_DefineVariableFromOption ${prefix}config.card UserChoices DateBegin 
     736        ${config_Post_CesmepCode}/libIGCM_install.sh $(pwd)/${prefix} \ 
     737                   ${config_Post_CesmepComparison} $JobName ${R_SAVE} "${ProjectID}" \ 
     738                   ${MailAdress} ${config_UserChoices_DateBegin//-/} \ 
     739                   ${config_Post_Cesmep} ${CesmepPeriod} ${config_Post_CesmepSlices} \ 
     740                   $components $CENTER 
     741        [ $? -ne 0 ] && echo -e "\nERROR : cannot configure C-ESM-EP run" && exit 5 
     742    else 
     743        echo -e "\nERROR Cannot (yet) handle CESMEP atlas on this computer system (${SYSTEM})" 
     744        echo "=> Variable Cesmep in config.card's section Post must be set to FALSE (rather than $config_Post_Cesmep)" 
     745        exit 6 
     746    fi 
     747fi 
    704748#- 
    705749[[ ${x_v} = 'verbose' ]] && print - ""; 
Note: See TracChangeset for help on using the changeset viewer.