Ignore:
Timestamp:
10/02/23 18:11:44 (8 months ago)
Author:
jgipsl
Message:

Update for obelix:

  • always create run directory in /home/scratch01/LOGIN/RUN_DIR. This is necessary when running on more than 1 node.
  • Update function IGCM_sys_RmRunDir to be identic with the one at irene, jean-zay and mesoipsl.
File:
1 edited

Legend:

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

    r1594 r1601  
    149149#==================================================== 
    150150#- RUN_DIR_PATH : Temporary working directory (=> TMP) 
    151 if [ ${DRYRUN_DEBUG} = 4 ] ; then 
    152     typeset -r RUN_DIR_PATH=${RUN_DIR_PATH:=/home/scratch01/$LOGIN/RUN_DIR} 
     151if [ X${PBS_JOBID} != X ] ; then 
     152    typeset -r RUN_DIR_PATH=${RUN_DIR_PATH:=/home/scratch01/$LOGIN/RUN_DIR/$PBS_O_LOGNAME.$PBS_JOBID} 
    153153else 
    154     if [ X${PBS_JOBID} != X ] ; then 
    155         typeset -r RUN_DIR_PATH=${RUN_DIR_PATH:=/scratch/$PBS_O_LOGNAME.$PBS_JOBID} 
    156     else 
    157         typeset -r RUN_DIR_PATH=${RUN_DIR_PATH:=/tmp/tmp$$} 
    158     fi 
     154    typeset -r RUN_DIR_PATH=${RUN_DIR_PATH:=/home/scratch01/$LOGIN/RUN_DIR/tmp$$} 
    159155fi 
     156 
    160157 
    161158#==================================================== 
     
    440437  if ( $DEBUG_sys ) ; then 
    441438    echo "IGCM_sys_RmRunDir :" $@ 
    442     echo "Dummy call, let the scheduler do that." 
     439  fi 
     440 
     441  typeset status 
     442 
     443  echo rm $@ > ${OUTCOMMAND_PATH}/out_command_${LOGIN}.$$ 2>&1 
     444  \rm $@ >> ${OUTCOMMAND_PATH}/out_command_${LOGIN}.$$ 2>&1 
     445  status=$? 
     446 
     447  if [ ${status} -gt 0 ] ; then 
     448    IGCM_debug_Print 1 "IGCM_sys_RmRunDir : rm error code is ${status}." 
     449    cat ${OUTCOMMAND_PATH}/out_command_${LOGIN}.$$ 
     450    IGCM_debug_Exit "IGCM_sys_RmRunDir" 
     451  else 
     452    \rm ${OUTCOMMAND_PATH}/out_command_${LOGIN}.$$ 
    443453  fi 
    444454  IGCM_debug_PopStack "IGCM_sys_RmRunDir" 
Note: See TracChangeset for help on using the changeset viewer.