Ignore:
Timestamp:
08/21/13 17:10:51 (11 years ago)
Author:
sdipsl
Message:

properly remove RUN_DIR_PATH used by AA_job on curie. see #141
but add some check to be sure RUN_DIR_PATH do not point to important directory.
Indeed within AA_Job you can overwrite RUN_DIR_PATH and define something like this:
RUN_DIR_PATH=$SCRATCHDIR
You don't want to erase your $SCRATCHDIR don't you

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/libIGCM_sys/libIGCM_sys_iitm.ksh

    r922 r933  
    18081808} 
    18091809 
    1810 ############################################################ 
    1811 # Check of space available on temporary filesytems. Dummy function here 
     1810#D-#================================================== 
     1811#D-function IGCM_sys_check_path 
     1812#D-* Purpose: check that RUN_DIR_PATH that will be removed on some machine 
     1813#D-* do not point to an important use directory. Stop immediately in that case. 
     1814#D-* Examples: 
     1815#D- 
     1816function IGCM_sys_check_path { 
     1817  IGCM_debug_PushStack "IGCM_sys_check_path" 
     1818  if ( $DEBUG_sys ) ; then 
     1819    echo "IGCM_sys_check_path" 
     1820  fi 
     1821 
     1822  if ( [ X${RUN_DIR_PATH} = X${HOME} ] || [ X${RUN_DIR_PATH} = X${WORKDIR} ] || [ X${RUN_DIR_PATH} = X${ARCHIVE} ] ) ; then 
     1823    IGCM_debug_Print 1 "Variable RUN_DIR_PATH is pointing to an important directory : ${RUN_DIR_PATH}" 
     1824    IGCM_debug_Print 1 "Please check the RUN_DIR_PATH definition in your Job : Job_${config_UserChoices_JobName}" 
     1825    IGCM_debug_Exit "This will stop the job" ;; 
     1826  fi 
     1827  IGCM_debug_PopStack "IGCM_sys_check_path" 
     1828} 
    18121829 
    18131830#D-#================================================== 
Note: See TracChangeset for help on using the changeset viewer.