Changeset 1567


Ignore:
Timestamp:
12/03/22 10:29:50 (17 months ago)
Author:
ssenesi
Message:

house-keeping scripts hanlde CESMEP outputs

Location:
branches/libIGCM_CESMEP
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/libIGCM_CESMEP/AA_clean_PeriodLength

    r1525 r1567  
    5757( ${DEBUG_debug} ) && IGCM_date_Check 
    5858 
     59clean_CESMEP() 
     60{ 
     61    IGCM_card_DefineVariableFromOption ${prefix}config.card Post Cesmep 
     62    if [ ${config_Post_Cesmep} != FALSE ]; then 
     63        echo -e "\033[1;32mDo you want to erase the CESMEP atlas and dedicated CliMAF cache) ?" 
     64        echo -n -e " Your answer (y/n) : \033[m" 
     65        read reponse 
     66        case ${reponse} in 
     67            oui|OUI|o|y|yes|YES) 
     68                $SUBMIT_DIR/cesmep_lite/libIGCM_clean.sh 
     69                ;; 
     70        esac   
     71    fi 
     72} 
     73 
    5974#================================== 
    6075# First of all 
     
    113128      ;; 
    114129    esac 
     130    clean_CESMEP 
    115131    exit 0 
    116132  fi 
     
    245261 
    246262  fi 
     263 
     264  clean_CESMEP 
     265   
    247266fi 
    248267exit 0 
  • branches/libIGCM_CESMEP/AA_purge_simulation

    r1525 r1567  
    171171fi 
    172172 
     173IGCM_card_DefineVariableFromOption ${prefix}config.card Post Cesmep 
     174if [ ${config_Post_Cesmep} != FALSE ]; then 
     175    echo -e "\033[1;32mDo you want to erase the CESMEP atlas and dedicated CliMAF cache) ?" 
     176    echo -n -e " Your answer (y/n) : \033[m" 
     177    read reponse 
     178    case ${reponse} in 
     179        oui|OUI|o|y|yes|YES) 
     180            $SUBMIT_DIR/cesmep_lite/libIGCM_clean.sh 
     181            ;; 
     182    esac 
     183fi 
     184 
    173185exit 0 
  • branches/libIGCM_CESMEP/ins_job

    r1564 r1567  
    659659[ ${new_struct?} == yes ] && prefix="$JobName/"   
    660660IGCM_card_DefineVariableFromOption ${prefix}config.card Post Cesmep 
    661  
    662661if [ ${config_Post_Cesmep} != FALSE ]; then 
    663662    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 ) 
     663    if [ x"${config_Post_CesmepMail}" == x"TRUE" ] || [ x"${config_Post_CesmepMail}" == x"True" ] ; then 
     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 
    669672    else 
    670         MailAdress=${USER} 
     673        MailAdress=None 
    671674    fi 
    672675    # 
  • branches/libIGCM_CESMEP/libIGCM_sys/libIGCM_sys_irene.ksh

    r1563 r1567  
    7070typeset MASTER=irene 
    7171# add default project on irene 
    72 set -x 
    7372if [ ! -z $BRIDGE_MSUB_PROJECT ]; then  
    7473    typeset PROJECT=$(echo ${BRIDGE_MSUB_PROJECT} | cut -d@ -f1 ) 
     
    7675    typeset PROJECT=$(echo ${CCCHOME} | cut -d/ -f5 ) 
    7776fi 
    78 set +x 
    7977# jobWarningDelay in seconds 
    8078typeset jobWarningDelay=${BRIDGE_MSUB_MAXTIME} 
Note: See TracChangeset for help on using the changeset viewer.