Ignore:
Timestamp:
05/22/15 15:40:47 (9 years ago)
Author:
sdipsl
Message:
  • Supervize post-processing jobs see #252
  • Homogenize post-processing jobs comments
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/AA_additionnal

    r1192 r1198  
    8080. ${libIGCM}/libIGCM_config/libIGCM_config.ksh 
    8181#------- 
    82 RUN_DIR=${RUN_DIR_PATH}/ATLAS_ADD_${YEARS} 
    83 IGCM_sys_MkdirWork ${RUN_DIR} 
    84 IGCM_sys_Cd ${RUN_DIR} 
     82IGCM_sys_MkdirWork ${RUN_DIR_PATH} 
     83IGCM_sys_Cd ${RUN_DIR_PATH} 
    8584#------- 
    8685( ${DEBUG_debug} ) && IGCM_debug_Check 
     
    9291#set -vx 
    9392 
    94 #=========================================== 
    95 R_ATLAS=ATLAS/SE_${YEARS} 
    96 R_OUT_OCE=${R_SAVE}/OCE 
    97  
    9893# ------------------------------------------------------------------ 
    9994# Test if all was right before proceeding further 
    10095# ------------------------------------------------------------------ 
    10196IGCM_debug_Verif_Exit_Post 
     97 
     98if [ ${StandAlone} = true ] ; then 
     99    CARD_DIR=${SUBMIT_DIR} 
     100else 
     101    CARD_DIR=${RUN_DIR_PATH} 
     102    IGCM_sys_Get_Master ${SUBMIT_DIR}/config.card ${RUN_DIR_PATH} 
     103    IGCM_sys_Get_Master ${SUBMIT_DIR}/run.card    ${RUN_DIR_PATH} 
     104    IGCM_sys_Get_Master ${SUBMIT_DIR}/COMP        ${RUN_DIR_PATH} 
     105    IGCM_sys_Get_Master ${SUBMIT_DIR}/POST        ${RUN_DIR_PATH} 
     106fi 
     107 
     108#================================== 
     109# First of all 
     110# 
     111# Read libIGCM compatibility version in config.card 
     112# Read UserChoices section 
     113# Read Ensemble section 
     114# Read Post section 
     115# Define all netcdf output directories 
     116#================================== 
     117IGCM_config_CommonConfiguration ${CARD_DIR}/config.card 
     118 
     119# ------------------------------------------------------------------ 
     120# Activate BigBrother so as to supervise this job 
     121# ------------------------------------------------------------------ 
     122IGCM_debug_BigBro_Initialize 
     123 
     124#================================== 
     125# Then set up several directories 
     126#================================== 
     127R_ATLAS=ATLAS/SE_${YEARS} 
     128R_OUT_OCE=${R_SAVE}/OCE 
     129DIR_OUT=${DIR_OUT:=SE} 
     130RUN_DIR=${RUN_DIR_PATH}/ATLAS_ADD_${YEARS} 
     131IGCM_sys_MkdirArchive ${R_FIGR} 
     132IGCM_sys_MkdirWork ${RUN_DIR} 
     133IGCM_sys_Cd ${RUN_DIR} 
    102134 
    103135# -------------------------------------------- 
     
    125157 
    126158# Save files 
    127 IGCM_sys_Put_Dir ATLAS ${R_SAVE} 
    128  
     159IGCM_sys_Put_Dir ATLAS ${R_FIGR} 
    129160IGCM_sys_Rm -Rf ATLAS 
    130161IGCM_sys_Rm -f SE_grid_?.nc 
    131162 
    132163# DODS copy 
    133 IGCM_sys_TestDirArchive ${R_SAVE}/${R_ATLAS} 
    134 [ $? = 0 ] && IGCM_sys_Put_Dods ${R_ATLAS} 
     164if [ X${config_Post_DodsCopy} = XTRUE ]  ; then 
     165  IGCM_sys_TestDirArchive ${R_FIGR}/${R_ATLAS} 
     166  [ $? = 0 ] && IGCM_sys_Put_Dods ${R_ATLAS} 
     167fi 
     168# Clean RUN_DIR_PATH (necessary for cesium and titane only) 
     169IGCM_sys_RmRunDir -Rf ${RUN_DIR_PATH} 
     170 
     171# ------------------------------------------------------------------ 
     172# Finalize BigBrother to inform that the jobs end 
     173# ------------------------------------------------------------------ 
     174IGCM_debug_BigBro_Finalize 
Note: See TracChangeset for help on using the changeset viewer.