Changeset 1461 for trunk/libIGCM


Ignore:
Timestamp:
06/26/18 19:38:38 (6 years ago)
Author:
jgipsl
Message:

Ticket #342
Changes for dfldatadir at irene:
Add optional variable DataProject? in config.card UserSection?. This variable is read only at irene in the function IGCM_sys_defineArchives.

  • The variable DataProject? is used to change project where to store IGCM_OUT (including scratch/work/store)
  • If the variable is set equal DEFAULT or if it is not set, then the module dfldatadir corresponding to the project used for submission is loaded
  • If DataProject? is set in config.card, then the corresponding module dfldatadir is loaded

Note: RUN_DIR_PATH is set before dfldatadir is loaded and therefor RUN_DIR_PATH might be on another project. It'll be on the project corresponding to the module loaded in the terminal when submitting the main job. When libIGCM resubmittes next period, the module dfldatadir in last period will be transmitted and the RUN_DIR will be on the same project as IGCM_OUT output.

File:
1 edited

Legend:

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

    r1459 r1461  
    105105fi 
    106106 
    107 # Use CMIP6 storage space when using project id gch0316 
    108 [[ "X${PROJECT}" = "Xgch0316" && ! $(module list --terse 2>&1 | grep dfldatadir/gencmip6) ]] && module switch dfldatadir dfldatadir/gencmip6 
    109  
    110107# FYI 
    111108[ ! X${TaskType} = Xchecking ] && IGCM_debug_Print 1 "List of loaded modules:" 
     
    202199#D-function IGCM_sys_defineArchives 
    203200#D-* Purpose: 
     201#D-* Load dfldatadir module : According to project used for submission (default) or set in config.card (optional) 
    204202#D-* Define ARCHIVE : Dedicated to large files 
    205203#D-* Define STORAGE : Dedicated to small/medium files 
     
    212210function IGCM_sys_defineArchives { 
    213211  IGCM_debug_PushStack "IGCM_sys_defineArchives" 
     212 
     213  # 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 
     215    # Default option: Change the dfldatadir according to the project used for submission 
     216    # 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}" 
     219  else 
     220    # Use the project set by the variable DataProject in section UserChoices in config.card 
     221    module switch dfldatadir dfldatadir/${config_UserChoices_DataProject} 
     222    IGCM_debug_Print 1 "Load dfldatadir for project ${config_UserChoices_DataProject}" 
     223  fi 
    214224 
    215225  if [ ! X${config_UserChoices_ARCHIVE} = X ]; then 
Note: See TracChangeset for help on using the changeset viewer.