Changeset 459


Ignore:
Timestamp:
04/18/11 16:33:17 (13 years ago)
Author:
sdipsl
Message:
  • Homogenize the way RUN_DIR_PATH are managed on platine/titane to distinguish between prod and post-processing class.
Location:
trunk/libIGCM/libIGCM_sys
Files:
2 edited

Legend:

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

    r453 r459  
    131131#==================================================== 
    132132#- RUN_DIR_PATH : Temporary working directory (=> TMP) 
    133 typeset RUN_DIR_PATH=${RUN_DIR_PATH:=${SCRATCHDIR}} 
    134 if [ $LSB_QUEUE == post ] ; then 
    135     typeset -r RUN_DIR_PATH=${SCRATCHDIR}/TMPDIR_IGCM/tmp$$ 
    136     if [ ! -d ${RUN_DIR_PATH} ]; then  
    137         \mkdir -p ${RUN_DIR_PATH} 
    138         if [ $? -gt 0 ] ; then 
    139             echo "Error in creation of "${RUN_DIR_PATH} 
    140         fi 
    141     fi 
     133# No "typeset -r" because on titane/platine all environment variables 
     134# are exported. So we can expect issue with read only environment variable 
     135if [ ! X${LSB_QUEUE} = Xmono ] ; then 
     136    typeset -r RUN_DIR_PATH=${RUN_DIR_PATH:=${SCRATCHDIR}} 
     137else 
     138    typeset -r RUN_DIR_PATH=${RUN_DIR_PATH:=${SCRATCHDIR}/TMPDIR_IGCM/tmp$$} 
    142139fi 
    143140 
  • trunk/libIGCM/libIGCM_sys/libIGCM_sys_titane.ksh

    r458 r459  
    150150#==================================================== 
    151151#- RUN_DIR_PATH : Temporary working directory (=> TMP) 
    152 typeset RUN_DIR_PATH=${RUN_DIR_PATH:=${SCRATCHDIR}} 
     152if [ ! X${LSB_QUEUE} = Xmono ] ; then 
     153    typeset -r RUN_DIR_PATH=${RUN_DIR_PATH:=${SCRATCHDIR}} 
     154else 
     155    typeset -r RUN_DIR_PATH=${RUN_DIR_PATH:=${SCRATCHDIR}/TMPDIR_IGCM/tmp$$} 
     156fi 
    153157 
    154158#==================================================== 
Note: See TracChangeset for help on using the changeset viewer.