Changeset 728


Ignore:
Timestamp:
10/18/12 11:17:39 (12 years ago)
Author:
sdipsl
Message:
  • Apply some overrules to ensure proper usage of computing centres resources
  • see #65 and #85
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/libIGCM_config/libIGCM_config.ksh

    r726 r728  
    7272  done 
    7373  echo 
     74 
     75  #================================== 
     76  # Define default value to keep compatibility with previous card: means before changes due to TGCC 
     77  # Apply some overrules to ensure proper usage of computing centres resources 
     78  if [ X${PackDefault} = Xtrue ] ; then 
     79    # If we DO apply pack in this computing center 
     80    IGCM_debug_Print 1 "Due to inodes policy OVERRULE RebuildFromArchive value to NONE" 
     81    config_Post_RebuildFromArchive=NONE 
     82    if [ X${config_UserChoices_SpaceName} = XTEST ]; then 
     83      # TEST simulations will not be packed and will stay on SCRATCHDIR filesystem 
     84      IGCM_debug_Print 1 "SpaceName=TEST. OVERRULE PackFrequency to NONE" 
     85      IGCM_debug_Print 1 "SpaceName=TEST. OVERRULE destination path directories" 
     86      config_Post_PackFrequency=NONE 
     87      IGCM_sys_ChangeArchive 
     88    else 
     89      # Default to RebuildFrequency if nothing has been set up related to PackFrequency 
     90      [ X${config_Post_PackFrequency} = X ] && config_Post_PackFrequency=${config_Post_RebuildFrequency} 
     91    fi 
     92  else 
     93    # If we DO NOT apply pack in this computing center 
     94    config_Post_PackFrequency=NONE 
     95  fi 
    7496 
    7597  #==================================================== 
     
    152174  #================================== 
    153175  IGCM_config_CommonConfiguration ${SUBMIT_DIR}/config.card 
    154  
    155   #================================== 
    156   # Define default value to keep compatibility with previous card: means before changes due to TGCC 
    157   if [ X${PackDefault} = Xtrue ] ; then 
    158     # If we DO apply pack in this computing center 
    159     IGCM_debug_Print 1 "Due to pack policy OVERRULE RebuildFromArchive to NONE" 
    160     config_Post_RebuildFromArchive=NONE 
    161     if [ X${config_UserChoices_SpaceName} = XTEST ]; then 
    162       # TEST simulations will not be packed and will stay on SCRATCHDIR filesystem 
    163       IGCM_debug_Print 1 "SpaceName=TEST. OVERRULE PackFrequency to NONE" 
    164       IGCM_debug_Print 1 "SpaceName=TEST. OVERRULE destination path directories" 
    165       config_Post_PackFrequency=NONE 
    166       IGCM_sys_ChangeArchive 
    167     else 
    168       # Default to RebuildFrequency if nothing has been set up related to PackFrequency 
    169       [ X${config_Post_PackFrequency} = X ] && config_Post_PackFrequency=${config_Post_RebuildFrequency} 
    170     fi 
    171   else 
    172     # If we DO NOT apply pack in this computing center 
    173     config_Post_PackFrequency=NONE 
    174   fi 
    175176 
    176177  #================================== 
Note: See TracChangeset for help on using the changeset viewer.