Changeset 154


Ignore:
Timestamp:
08/14/09 13:08:56 (15 years ago)
Author:
sdipsl
Message:
  • Use generic function IGCM_sys_SendMail
  • BigCleanUp? at the end of the simulation if in production mode
  • Do the CleanUp? After the resubmission ...
  • ${RunDir?} depends on PID because of the BigCleanUp?
Location:
trunk/libIGCM
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/AA_job

    r146 r154  
    126126#D- Define running directory 
    127127#D- Default=${TMPDIR} ie temporary batch directory 
    128 #RUN_DIR_PATH=/workdir/of/this/machine 
     128#RUN_DIR_PATH=/workdir/or/scratchdir/of/this/machine 
    129129 
    130130#D- Define submit directory 
     
    205205#D-   
    206206# --------------------------------------------------------------------== 
    207 RUN_DIR=${RUN_DIR_PATH}/${config_UserChoices_TagName}/${config_UserChoices_JobName} 
     207RUN_DIR=${RUN_DIR_PATH}/${config_UserChoices_TagName}/${config_UserChoices_JobName}.${$} 
    208208IGCM_sys_MkdirWork ${RUN_DIR} 
    209209IGCM_sys_Cd ${RUN_DIR} 
  • trunk/libIGCM/libIGCM_config/libIGCM_config.ksh

    r151 r154  
    652652    echo 
    653653 
    654     # Supress Non Deleted Boundary files 
    655     if [ ${DRYRUN} -le 2 ] ; then 
    656         IGCM_comp_DelFixeBoundaryFiles 
    657         ls -la 
    658     fi 
    659  
    660654    if [ ${SimulationLengthInDays} -ge ${ExperienceLengthInDays} ] ; then 
    661655 
     
    664658        #==========================# 
    665659 
    666         cat  << END_MAIL > job_atlas.mail 
    667 Dear ${LOGIN}, 
    668  
    669   Simulation ${config_UserChoices_JobName} is finished on supercomputer `hostname`. 
    670   Job started : ${DateBegin} 
    671   Job ended   : ${DateEnd} 
    672   Ouput files are available in ${R_SAVE} 
    673 END_MAIL 
    674  
    675         mailx -s "${config_UserChoices_JobName} completed" ${USER} < job_atlas.mail 
     660        # Mail notification 
     661        IGCM_sys_SendMail 
     662 
     663        # 
    676664        IGCM_card_WriteOption ${SUBMIT_DIR}/run.card Configuration PeriodState "Completed" 
    677665        IGCM_debug_Print 1 "Normal End of computation." 
     
    681669            IGCM_sys_Tree ${R_SAVE} 
    682670        fi 
     671     
    683672    else 
    684673 
     
    693682 
    694683        IGCM_debug_Print 1 "Submit next job" 
    695         # SUBMITTED NEXT JOB 
     684        # SUBMIT NEXT JOB 
    696685        IGCM_sys_Cd ${SUBMIT_DIR} 
    697686        IGCM_sys_Qsub ${SUBMIT_DIR}/Job_${config_UserChoices_JobName} 
    698687    fi 
    699688 
     689    # Supress Non Deleted Boundary files 
     690    if [ ${DRYRUN} -le 2 ] ; then 
     691        IGCM_comp_DelFixeBoundaryFiles 
     692        ls -la 
     693    fi 
     694 
     695    # Clean ${RUN_DIR}=${RUN_DIR_PATH}/${config_UserChoices_TagName}/${config_UserChoices_JobName} 
     696    # Only for production run (No clean up in DEV or DEB mode) 
     697    [ X${JobType} = X${RUN} ] && IGCM_sys_Rm -rf ${RUN_DIR} 
     698 
    700699    IGCM_debug_PopStack "IGCM_config_Finalize" 
    701700} 
Note: See TracChangeset for help on using the changeset viewer.