Ignore:
Timestamp:
10/15/22 17:10:09 (18 months ago)
Author:
ssenesi
Message:

Better gues default_project on irene(-amd) in libIGCM_sys

Location:
branches/libIGCM_CESMEP/libIGCM_sys
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/libIGCM_CESMEP/libIGCM_sys/libIGCM_sys_irene-amd.ksh

    r1544 r1563  
    7070typeset MASTER=irene-amd 
    7171# add default project on irene-amd 
    72 typeset PROJECT=$(echo ${BRIDGE_MSUB_PROJECT:=::default_project::} | cut -d@ -f1 ) 
     72if [ ! -z $BRIDGE_MSUB_PROJECT ]; then  
     73    typeset PROJECT=$(echo ${BRIDGE_MSUB_PROJECT} | cut -d@ -f1 ) 
     74else 
     75    typeset PROJECT=$(echo ${CCCHOME} | cut -d/ -f5 ) 
     76fi 
    7377# jobWarningDelay in seconds 
    7478typeset jobWarningDelay=${BRIDGE_MSUB_MAXTIME} 
  • branches/libIGCM_CESMEP/libIGCM_sys/libIGCM_sys_irene.ksh

    r1512 r1563  
    7070typeset MASTER=irene 
    7171# add default project on irene 
    72 typeset PROJECT=$(echo ${BRIDGE_MSUB_PROJECT:=::default_project::} | cut -d@ -f1 ) 
     72set -x 
     73if [ ! -z $BRIDGE_MSUB_PROJECT ]; then  
     74    typeset PROJECT=$(echo ${BRIDGE_MSUB_PROJECT} | cut -d@ -f1 ) 
     75else 
     76    typeset PROJECT=$(echo ${CCCHOME} | cut -d/ -f5 ) 
     77fi 
     78set +x 
    7379# jobWarningDelay in seconds 
    7480typeset jobWarningDelay=${BRIDGE_MSUB_MAXTIME} 
     
    210216function IGCM_sys_defineArchives { 
    211217  IGCM_debug_PushStack "IGCM_sys_defineArchives" 
    212  
    213218  # Load dfldatadir depending on the project used for submission (default) or set in config.card (optional) 
    214   if [ X${config_UserChoices_DataProject} = X ] || [ X${config_UserChoices_DataProject} = DEFAULT ]; then 
     219  if [ X${config_UserChoices_DataProject} = X ] || [ X${config_UserChoices_DataProject} = XDEFAULT ]; then 
    215220    # Default option: Change the dfldatadir according to the project used for submission 
    216221    # The variable DataProject in section UserChoices in config.card is not set or is set to DEFAULT 
     
    219224      IGCM_debug_Print 1 "Load dfldatadir for forced gencmip6 project" 
    220225    else  
     226      echo "Load dfldatadir for project ${PROJECT}" 
    221227      module switch dfldatadir dfldatadir/${PROJECT} 
    222228      IGCM_debug_Print 1 "Load dfldatadir for project ${PROJECT}" 
     
    225231    # Use the project set by the variable DataProject in section UserChoices in config.card 
    226232    module switch dfldatadir dfldatadir/${config_UserChoices_DataProject} 
    227     IGCM_debug_Print 1 "Load dfldatadir for DataProject red in config.card : ${config_UserChoices_DataProject}" 
    228   fi 
    229  
     233    IGCM_debug_Print 1 "Load dfldatadir for DataProject read in config.card : ${config_UserChoices_DataProject}" 
     234  fi 
    230235 #==================================================== 
    231236 #- RUN_DIR_PATH : Temporary working directory (=> TMP) 
Note: See TracChangeset for help on using the changeset viewer.