Ignore:
Timestamp:
06/17/19 17:41:07 (5 years ago)
Author:
jgipsl
Message:

Do for other hosts what already was done for irene: now read EnvFile? from config.card and source this file if it exists, otherwise source default file. Also some homogenization.

File:
1 edited

Legend:

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

    r1484 r1485  
    9393#. /home/${LOGIN}/.atlas_env_${HOST}_ksh 
    9494#export PATH=${PATH}:/home/${LOGIN}/rebuild/bin/ 
     95IGCM_debug_Print 1 "Modules will be loaded later in IGCM_sys_activ_variables." 
    9596 
    9697#==================================================== 
     
    711712    echo "IGCM_sys_activ_variables" 
    712713  fi 
     714 
     715# -------------------------------------------------------------------- 
     716#D- MODULE specifications 
     717# -------------------------------------------------------------------- 
     718  # Source the file EnvFile containing all module load needed to run the model. 
     719  # EnvFile can be specified in config.card. If this is the case and if the file exists,  
     720  # it will be used. Otherwise at default host, no file will be used. 
     721  if [ ! X${config_UserChoices_EnvFile} = X ] && [ -f ${config_UserChoices_EnvFile} ] ; then 
     722      # EnvFile is set in config.card and the file exists 
     723      IGCM_debug_Print 1 "EnvFile set in config.card will be used" 
     724      EnvFile=${config_UserChoices_EnvFile} 
     725 
     726      IGCM_debug_Print 1 "IGCM_sys_active_variables : Following EnvFile will be used :"  
     727      IGCM_debug_Print 1 ${EnvFile} 
     728      . ${EnvFile} 
     729  else 
     730      IGCM_debug_Print 1 "IGCM_sys_active_variables : No modules will be loaded in default set up."  
     731  fi 
     732 
     733  IGCM_debug_Print 1 "IGCM_sys_active_variables : Now loaded modules for default system. " 
     734  module list 
    713735 
    714736# -------------------------------------------------------------------- 
Note: See TracChangeset for help on using the changeset viewer.