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_curie.ksh

    r926 r933  
    21542154} 
    21552155 
    2156 ############################################################ 
    2157 # Check of space available on temporary filesytems. 
     2156#D-#================================================== 
     2157#D-function IGCM_sys_check_path 
     2158#D-* Purpose: check that RUN_DIR_PATH that will be removed on some machine 
     2159#D-* do not point to an important use directory. Stop immediately in that case. 
     2160#D-* Examples: 
     2161#D- 
     2162function IGCM_sys_check_path { 
     2163  IGCM_debug_PushStack "IGCM_sys_check_path" 
     2164  if ( $DEBUG_sys ) ; then 
     2165    echo "IGCM_sys_check_path" 
     2166  fi 
     2167 
     2168  if ( [ X${RUN_DIR_PATH} = X${HOME} ] || [ X${RUN_DIR_PATH} = X${WORKDIR} ] || [ X${RUN_DIR_PATH} = X${SCRATCHDIR} ] || [ X${RUN_DIR_PATH} = X${CCCWORKDIR} ] || [ X${RUN_DIR_PATH} = X${CCCSTOREDIR} ] ) ; then 
     2169    IGCM_debug_Print 1 "Variable RUN_DIR_PATH is pointing to an important directory : ${RUN_DIR_PATH}" 
     2170    IGCM_debug_Print 1 "Please check the RUN_DIR_PATH definition in your Job : Job_${config_UserChoices_JobName}" 
     2171    IGCM_debug_Exit "This will stop the job" ;; 
     2172  fi 
     2173  IGCM_debug_PopStack "IGCM_sys_check_path" 
     2174} 
    21582175 
    21592176#D-#================================================== 
Note: See TracChangeset for help on using the changeset viewer.