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

    r923 r933  
    19001900} 
    19011901 
    1902 ############################################################ 
    1903 # Check of space available on temporary filesytems. Dummy function here 
     1902#D-#================================================== 
     1903#D-function IGCM_sys_check_path 
     1904#D-* Purpose: check that RUN_DIR_PATH that will be removed on some machine 
     1905#D-* do not point to an important use directory. Stop immediately in that case. 
     1906#D-* Examples: 
     1907#D- 
     1908function IGCM_sys_check_path { 
     1909  IGCM_debug_PushStack "IGCM_sys_check_path" 
     1910  if ( $DEBUG_sys ) ; then 
     1911    echo "IGCM_sys_check_path" 
     1912  fi 
     1913 
     1914  if ( [ X${RUN_DIR_PATH} = X${HOME} ] || [ X${RUN_DIR_PATH} = X${ARCHIVE} ] ) ; then 
     1915    IGCM_debug_Print 1 "Variable RUN_DIR_PATH is pointing to an important directory : ${RUN_DIR_PATH}" 
     1916    IGCM_debug_Print 1 "Please check the RUN_DIR_PATH definition in your Job : Job_${config_UserChoices_JobName}" 
     1917    IGCM_debug_Exit "This will stop the job" ;; 
     1918  fi 
     1919  IGCM_debug_PopStack "IGCM_sys_check_path" 
     1920} 
    19041921 
    19051922#D-#================================================== 
Note: See TracChangeset for help on using the changeset viewer.