Changeset 1479 for trunk/libIGCM


Ignore:
Timestamp:
03/18/19 14:56:05 (5 years ago)
Author:
jgipsl
Message:

Added possibility to source a different file than the default one containing module load. To use this options, set in config.card UserChoices? section
EnvFile?=...

File:
1 edited

Legend:

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

    r1477 r1479  
    10791079#D- MODULE specifications 
    10801080# -------------------------------------------------------------------- 
    1081   module purge > /dev/null 2>&1  
    1082   if [ X${compilerVersion} = XV17 ] ; then 
    1083     IGCM_debug_Print 1 "IGCM_sys_active_variables : Using compiler version V17" 
     1081  # Source the file EnvFile containing all module load needed to run the model. 
     1082  # Use default a default file on the shared account or use an optional file specified in config.card. 
     1083  if [ X${config_UserChoices_EnvFile} = X ] || [ X${config_UserChoices_EnvFile} = DEFAULT ] ; then 
     1084      IGCM_debug_Print 1 "IGCM_sys_active_variables : Default modules will be used" 
     1085      module purge > /dev/null 2>&1  
     1086      if [ X${compilerVersion} = XV17 ] ; then 
     1087          IGCM_debug_Print 1 "IGCM_sys_active_variables : Using compiler version V17" 
     1088          ## EnvFile=/ccc/cont003/home/igcmg/igcmg/MachineEnvironment/irene/env_irene > /dev/null 2>&1 
     1089          EnvFile=$( ccc_home -u igcmg)/MachineEnvironment/irene/env_irene > /dev/null 2>&1 
     1090      else 
     1091          IGCM_debug_Exit "This compiler version is not yet supported : ${compilerVersion}" 
     1092      fi 
    10841093  else 
    1085     IGCM_debug_Exit "This compiler version is not yet supported : ${compilerVersion}" 
    1086   fi 
    1087   ##. /ccc/cont003/home/igcmg/igcmg/MachineEnvironment/irene/env_irene > /dev/null 2>&1 
    1088   . $( ccc_home -u igcmg)/MachineEnvironment/irene/env_irene > /dev/null 2>&1 
     1094      # EnvFile is set in config.card 
     1095      IGCM_debug_Print 1 "EnvFile set in config.card will be used" 
     1096      EnvFile=${config_UserChoices_EnvFile} 
     1097  fi 
     1098  IGCM_debug_Print 1 "IGCM_sys_active_variables : Following EnvFile will be used :"  
     1099  IGCM_debug_Print 1 ${EnvFile} 
     1100  . ${EnvFile} 
     1101 
    10891102  IGCM_debug_Print 1 "IGCM_sys_active_variables : Now loaded modules for Irene. " 
    10901103  module list 
Note: See TracChangeset for help on using the changeset viewer.