Changeset 1474


Ignore:
Timestamp:
10/26/18 17:33:59 (5 years ago)
Author:
mafoipsl
Message:

On Irene for all xxxcmip6 sub-project, force dfldatadir to gencmip6.
Thanks to PC, move initialisation of RUN_DIR after module switch operation.

File:
1 edited

Legend:

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

    r1473 r1474  
    165165#==================================================== 
    166166#- RUN_DIR_PATH : Temporary working directory (=> TMP) 
    167 typeset -r RUN_DIR_PATH=${RUN_DIR_PATH:=${CCCSCRATCHDIR}/RUN_DIR/${BRIDGE_MSUB_JOBID}_${$}} 
     167#typeset -r RUN_DIR_PATH=${RUN_DIR_PATH:=${CCCSCRATCHDIR}/RUN_DIR/${BRIDGE_MSUB_JOBID}_${$}} 
    168168 
    169169#==================================================== 
     
    215215    # Default option: Change the dfldatadir according to the project used for submission 
    216216    # The variable DataProject in section UserChoices in config.card is not set or is set to DEFAULT 
    217     module switch dfldatadir dfldatadir/${PROJECT} 
    218     IGCM_debug_Print 1 "Load dfldatadir for project ${PROJECT}" 
     217    if [ X"$( echo ${PROJECT} | grep cmip6 )" != "X" ] ; then 
     218      module switch dfldatadir dfldatadir/gencmip6 
     219      IGCM_debug_Print 1 "Load dfldatadir for forced gencmip6 project" 
     220    else  
     221      module switch dfldatadir dfldatadir/${PROJECT} 
     222      IGCM_debug_Print 1 "Load dfldatadir for project ${PROJECT}" 
     223    fi 
    219224  else 
    220225    # Use the project set by the variable DataProject in section UserChoices in config.card 
    221226    module switch dfldatadir dfldatadir/${config_UserChoices_DataProject} 
    222     IGCM_debug_Print 1 "Load dfldatadir for project ${config_UserChoices_DataProject}" 
    223   fi 
     227    IGCM_debug_Print 1 "Load dfldatadir for DataProject red in config.card : ${config_UserChoices_DataProject}" 
     228  fi 
     229 
     230 #==================================================== 
     231 #- RUN_DIR_PATH : Temporary working directory (=> TMP) 
     232 typeset -r RUN_DIR_PATH=${RUN_DIR_PATH:=${CCCSCRATCHDIR}/RUN_DIR/${BRIDGE_MSUB_JOBID}_${$}} 
    224233 
    225234  if [ ! X${config_UserChoices_ARCHIVE} = X ]; then 
Note: See TracChangeset for help on using the changeset viewer.