- Timestamp:
- 04/25/23 14:26:44 (15 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/libIGCM_CESMEP/libIGCM_sys/libIGCM_sys_irene.ksh
r1567 r1585 38 38 #==================================================== 39 39 # Turn in dry run mode ? (sys_Put_Rest, sys_Put_Out, sys_Get) 40 typeset -r DRYRUN=${DRYRUN:=0} 40 if ([ X${DRYRUN} != X ] && [ ${DRYRUN} = 4 ]) ; then 41 typeset -r DRYRUN=0 42 typeset -r DRYRUN_DEBUG=4 43 else 44 typeset -r DRYRUN=${DRYRUN:=0} 45 typeset -r DRYRUN_DEBUG=0 46 fi 47 41 48 42 49 # YOU MUST COMPILE YOUR EXE FILES FOR DRYRUN MODE ! … … 54 61 # | 3 | yes | no | no | no | 55 62 # ------------------------------------------------------------------------------------- 63 # | 4 | yes | yes | creation of RUN_DIR and Job_debug | 64 # ------------------------------------------------------------------------------------- 65 56 66 57 67 #===================================================== … … 70 80 typeset MASTER=irene 71 81 # add default project on irene 72 if [ ! -z $BRIDGE_MSUB_PROJECT ]; then 73 typeset PROJECT=$(echo ${BRIDGE_MSUB_PROJECT} | cut -d@ -f1 ) 74 else 75 typeset PROJECT=$(echo ${CCCHOME} | cut -d/ -f5 ) 76 fi 82 typeset PROJECT=$(echo ${BRIDGE_MSUB_PROJECT:=gen0826} | cut -d@ -f1 ) 83 # if [ ! -z $BRIDGE_MSUB_PROJECT ]; then 84 # typeset PROJECT=$(echo ${BRIDGE_MSUB_PROJECT} | cut -d@ -f1 ) 85 # else 86 # typeset PROJECT=$(echo ${CCCHOME} | cut -d/ -f5 ) 87 # fi 77 88 # jobWarningDelay in seconds 78 89 typeset jobWarningDelay=${BRIDGE_MSUB_MAXTIME} … … 96 107 # Set environment tools (ferret, nco, cdo, rebuild, ...) 97 108 #==================================================== 109 typeset CCCOS=${CCCOS:=$( ccc_os )} 110 98 111 if [ X${TaskType} = Xcomputing ] ; then 99 112 IGCM_debug_Print 1 "Modules will be loaded later in IGCM_sys_activ_variables." 100 113 else 101 114 module purge > /dev/null 2>&1 102 ##. /ccc/cont003/home/igcmg/igcmg/MachineEnvironment/irene/env_irene > /dev/null 2>&1 103 . $( ccc_home -u igcmg)/MachineEnvironment/irene/env_irene > /dev/null 2>&1 104 ##. /ccc/cont003/home/igcmg/igcmg/MachineEnvironment/irene/env_atlas_irene > /dev/null 2>&1 105 . $( ccc_home -u igcmg)/MachineEnvironment/irene/env_atlas_irene > /dev/null 2>&1 115 if [ X${CCCOS} = X"Rhel_8__x86_64" ] ; then 116 . $( ccc_home -u igcmg)/MachineEnvironment/irene/env_atlas_irene > /dev/null 2>&1 117 else 118 . $( ccc_home -u igcmg)/MachineEnvironment/irene_prev/env_irene > /dev/null 2>&1 119 . $( ccc_home -u igcmg)/MachineEnvironment/irene_prev/env_atlas_irene > /dev/null 2>&1 120 fi 106 121 107 122 export PCMDI_MP=/ccc/work/cont003/igcmg/igcmg/PCMDI-MP … … 214 229 function IGCM_sys_defineArchives { 215 230 IGCM_debug_PushStack "IGCM_sys_defineArchives" 231 216 232 # Load dfldatadir depending on the project used for submission (default) or set in config.card (optional) 217 233 if [ X${config_UserChoices_DataProject} = X ] || [ X${config_UserChoices_DataProject} = XDEFAULT ]; then … … 222 238 IGCM_debug_Print 1 "Load dfldatadir for forced gencmip6 project" 223 239 else 224 echo "Load dfldatadir for project ${PROJECT}"225 240 module switch dfldatadir dfldatadir/${PROJECT} 226 241 IGCM_debug_Print 1 "Load dfldatadir for project ${PROJECT}" … … 231 246 IGCM_debug_Print 1 "Load dfldatadir for DataProject read in config.card : ${config_UserChoices_DataProject}" 232 247 fi 248 233 249 #==================================================== 234 250 #- RUN_DIR_PATH : Temporary working directory (=> TMP) 235 251 typeset -r RUN_DIR_PATH=${RUN_DIR_PATH:=${CCCSCRATCHDIR}/RUN_DIR/${BRIDGE_MSUB_JOBID}_${$}} 236 237 252 if [ ! X${config_UserChoices_ARCHIVE} = X ]; then 238 253 #==================================================== … … 275 290 R_FIG=${STORAGE}/IGCM_OUT 276 291 fi 277 278 292 #==================================================== 279 293 #- CMIP6 (hosting CMIP6 files produced by XIOS2 and configured by dr2xml)
Note: See TracChangeset
for help on using the changeset viewer.