Ignore:
Timestamp:
04/25/23 14:26:44 (15 months ago)
Author:
ssenesi
Message:

merge branch libIGCM_CESMEP with trunk that handles RedHat8 on Irene

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/libIGCM_CESMEP/libIGCM_sys/libIGCM_sys_obelix.ksh

    r1487 r1585  
    3838#==================================================== 
    3939# Turn in dry run mode ? (sys_Put_Rest, sys_Put_Out, sys_Get) 
    40 typeset -r DRYRUN=${DRYRUN:=0} 
     40if ([ X${DRYRUN} != X ] && [ ${DRYRUN} = 4 ]) ; then 
     41  typeset -r DRYRUN=0 
     42  typeset -r DRYRUN_DEBUG=4 
     43else 
     44  typeset -r DRYRUN=${DRYRUN:=0} 
     45  typeset -r DRYRUN_DEBUG=0 
     46fi 
    4147 
    4248# YOU MUST COMPILE YOUR EXE FILES FOR DRYRUN MODE ! 
     
    5460# |    3     |       yes           |    no      |  no     |      no                   | 
    5561# ------------------------------------------------------------------------------------- 
     62# |    4     |       yes           |    yes     |  creation of RUN_DIR and Job_debug  | 
     63# ------------------------------------------------------------------------------------- 
     64 
    5665 
    5766#===================================================== 
     
    140149#==================================================== 
    141150#- RUN_DIR_PATH : Temporary working directory (=> TMP) 
    142 if [ X${PBS_JOBID} != X ] ; then 
    143   typeset -r RUN_DIR_PATH=${RUN_DIR_PATH:=/scratch/$PBS_O_LOGNAME.$PBS_JOBID} 
     151if [ ${DRYRUN_DEBUG} = 4 ] ; then 
     152    typeset -r RUN_DIR_PATH=${RUN_DIR_PATH:=/home/scratch01/$LOGIN/RUN_DIR} 
    144153else 
    145   typeset -r RUN_DIR_PATH=${RUN_DIR_PATH:=/tmp/tmp$$} 
     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 
    146159fi 
    147160 
Note: See TracChangeset for help on using the changeset viewer.