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

    r926 r933  
    19421942} 
    19431943 
    1944 ############################################################ 
    1945 # Check of space available on temporary filesytems. 
     1944#D-#================================================== 
     1945#D-function IGCM_sys_check_path 
     1946#D-* Purpose: check that RUN_DIR_PATH that will be removed on some machine 
     1947#D-* do not point to an important use directory. Stop immediately in that case. 
     1948#D-* Examples: 
     1949#D- 
     1950function IGCM_sys_check_path { 
     1951  IGCM_debug_PushStack "IGCM_sys_check_path" 
     1952  if ( $DEBUG_sys ) ; then 
     1953    echo "IGCM_sys_check_path" 
     1954  fi 
     1955 
     1956  if ( [ X${RUN_DIR_PATH} = X${HOME} ] || [ X${RUN_DIR_PATH} = X${WORKDIR} ] || [ X${RUN_DIR_PATH} = X${HOMEGAYA} ] ) ; then 
     1957    IGCM_debug_Print 1 "Variable RUN_DIR_PATH is pointing to an important directory : ${RUN_DIR_PATH}" 
     1958    IGCM_debug_Print 1 "Please check the RUN_DIR_PATH definition in your Job : Job_${config_UserChoices_JobName}" 
     1959    IGCM_debug_Exit "This will stop the job" ;; 
     1960  fi 
     1961  IGCM_debug_PopStack "IGCM_sys_check_path" 
     1962} 
    19461963 
    19471964#D-#================================================== 
Note: See TracChangeset for help on using the changeset viewer.