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

    r1567 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 
     47 
    4148 
    4249# YOU MUST COMPILE YOUR EXE FILES FOR DRYRUN MODE ! 
     
    5461# |    3     |       yes           |    no      |  no     |      no                   | 
    5562# ------------------------------------------------------------------------------------- 
     63# |    4     |       yes           |    yes     |  creation of RUN_DIR and Job_debug  | 
     64# ------------------------------------------------------------------------------------- 
     65 
    5666 
    5767#===================================================== 
     
    7080typeset MASTER=irene 
    7181# 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 
     82typeset 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 
    7788# jobWarningDelay in seconds 
    7889typeset jobWarningDelay=${BRIDGE_MSUB_MAXTIME} 
     
    96107# Set environment tools (ferret, nco, cdo, rebuild, ...) 
    97108#==================================================== 
     109typeset CCCOS=${CCCOS:=$( ccc_os )} 
     110 
    98111if [ X${TaskType} = Xcomputing ] ; then 
    99112  IGCM_debug_Print 1 "Modules will be loaded later in IGCM_sys_activ_variables." 
    100113else 
    101114  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 
    106121 
    107122  export PCMDI_MP=/ccc/work/cont003/igcmg/igcmg/PCMDI-MP 
     
    214229function IGCM_sys_defineArchives { 
    215230  IGCM_debug_PushStack "IGCM_sys_defineArchives" 
     231 
    216232  # Load dfldatadir depending on the project used for submission (default) or set in config.card (optional) 
    217233  if [ X${config_UserChoices_DataProject} = X ] || [ X${config_UserChoices_DataProject} = XDEFAULT ]; then 
     
    222238      IGCM_debug_Print 1 "Load dfldatadir for forced gencmip6 project" 
    223239    else  
    224       echo "Load dfldatadir for project ${PROJECT}" 
    225240      module switch dfldatadir dfldatadir/${PROJECT} 
    226241      IGCM_debug_Print 1 "Load dfldatadir for project ${PROJECT}" 
     
    231246    IGCM_debug_Print 1 "Load dfldatadir for DataProject read in config.card : ${config_UserChoices_DataProject}" 
    232247  fi 
     248 
    233249 #==================================================== 
    234250 #- RUN_DIR_PATH : Temporary working directory (=> TMP) 
    235251 typeset -r RUN_DIR_PATH=${RUN_DIR_PATH:=${CCCSCRATCHDIR}/RUN_DIR/${BRIDGE_MSUB_JOBID}_${$}} 
    236  
    237252  if [ ! X${config_UserChoices_ARCHIVE} = X ]; then 
    238253    #==================================================== 
     
    275290    R_FIG=${STORAGE}/IGCM_OUT 
    276291  fi 
    277  
    278292  #==================================================== 
    279293  #- CMIP6 (hosting CMIP6 files produced by XIOS2 and configured by dr2xml) 
Note: See TracChangeset for help on using the changeset viewer.