Ignore:
Timestamp:
04/25/23 14:26:44 (15 months ago)
Author:
ssenesi
Message:

merge branch libIGCM_CESMEP with trunk that handles RedHat8 on Irene

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/libIGCM_CESMEP/libIGCM_sys/libIGCM_sys.ksh

    r1521 r1585  
    8181        [ ! X${TaskType} = Xchecking ] && echo "Source machine dependent settings for obelix or asterix." 
    8282        CENTER=LSCE 
    83         SYSTEM=lxiv8 
     83        SYSTEM=obelix 
    8484        . ${libIGCM}/libIGCM_sys/libIGCM_sys_obelix.ksh;; 
     85    spiritx*) 
     86            [ ! X${TaskType} = Xchecking ] && echo "Source machine dependent settings for spiritx at MESO ESPRI IPSL cluster." 
     87        CENTER=spiritx 
     88        SYSTEM=mesoipsl 
     89        . ${libIGCM}/libIGCM_sys/libIGCM_sys_mesoipsl.ksh;; 
     90    spirit*) 
     91            [ ! X${TaskType} = Xchecking ] && echo "Source machine dependent settings for spirit at MESO ESPRI IPSL cluster." 
     92        CENTER=spirit 
     93        SYSTEM=mesoipsl 
     94        . ${libIGCM}/libIGCM_sys/libIGCM_sys_mesoipsl.ksh;; 
    8595    ciclad*) 
    8696        [ ! X${TaskType} = Xchecking ] && echo "Source machine dependent settings for ciclad for running at ciclad." 
     
    16311641  IGCM_debug_PopStack "IGCM_sys_cdo" 
    16321642} 
    1633  
    16341643#  
     1644#D-#================================================== 
     1645#D-function IGCM_sys_create_run_dir 
     1646#D-* Purpose: stop the simulation in order to work into the run_dir directory 
     1647#D-* Examples: 
     1648#D- 
     1649function IGCM_sys_create_run_dir { 
     1650  IGCM_debug_PushStack "IGCM_sys_create_run_dir" 
     1651  if ( $DEBUG_sys ) ; then 
     1652    echo "IGCM_sys_create_run_dir :" 
     1653  fi 
     1654  if [ -f ${libIGCM}/Job_debug_${config_UserChoices_JobName} ] ; then 
     1655 
     1656      CPL_comp=n ; SRF_comp=n ; OCE_comp=n ; CHM_comp=n 
     1657      for comp in ${config_ListOfComponents[*]} ; do 
     1658        [ "X${comp}" = "XCPL" ] && CPL_comp=y 
     1659        [ "X${comp}" = "XSRF" ] && SRF_comp=y 
     1660        [ "X${comp}" = "XOCE" ] && OCE_comp=y 
     1661        [ "X${comp}" = "XCHM" ] && CHM_comp=y 
     1662        eval ExeNameIn=\${config_Executable_${comp}[0]} 
     1663        eval ExeNameOut=\${config_Executable_${comp}[1]} 
     1664        if [ X${ExeNameIn} != X\"\" ] ; then 
     1665          eval ExeNameIn=${ExeNameIn} 
     1666          echo "$ExeNameIn"" ""$ExeNameOut" >> components_binary.txt  
     1667        fi 
     1668      done 
     1669   SUBMIT_DIRECTORY=$(grep SUBMIT_DIR ${libIGCM}/libIGCM_sys/libIGCM_sys_${SYSTEM}.ksh | grep -m1 typeset | cut -dx -f2) 
     1670      sed -e "s%::EXECUTION::%${EXECUTION}%" \ 
     1671          -e "s%::EXECUTION_TYPE::%${executionType}%" \ 
     1672          -e "s%::JOBNAME::%${config_UserChoices_JobName}%" \ 
     1673          -e "s%::SUBMIT_DIR::%${SUBMIT_DIRECTORY}%" \ 
     1674          -e "s%::CPL_comp::%${CPL_comp}%" \ 
     1675          -e "s%::OCE_comp::%${OCE_comp}%" \ 
     1676          -e "s%::SRF_comp::%${SRF_comp}%" \ 
     1677          -e "s%::CHM_comp::%${CHM_comp}%" \ 
     1678          ${libIGCM}/Job_debug_${config_UserChoices_JobName} > ${RUN_DIR}/Job_debug_${config_UserChoices_JobName} 
     1679      cp ${EnvFile} ${RUN_DIR}/. 
     1680      echo 
     1681      echo "############################################" 
     1682      echo "#    DEBUG PHASE : CREATION OF RUN_DIR    #" 
     1683      echo "############################################" 
     1684      echo 
     1685      echo "You are in development or debug phase" 
     1686      echo "You can run directly into the running directory which is here " 
     1687      echo ${RUN_DIR} 
     1688      echo "Inside the run directory you will find a Job_debug_${config_UserChoices_JobName}" 
     1689      echo "to be used to launch the run as follows :" 
     1690      echo "${SUBMIT} Job_debug_${config_UserChoices_JobName}" 
     1691      exit 
     1692  else 
     1693      echo "############################################" 
     1694      echo "#    DEBUG PHASE : CREATION OF RUN_DIR    #" 
     1695      echo "############################################" 
     1696      echo 
     1697      echo "You are in development or debug phase" 
     1698      echo "You can run directly into the running directory which is here " 
     1699      echo ${RUN_DIR} 
     1700      exit 
     1701  fi 
     1702  
     1703  IGCM_debug_PopStack "IGCM_sys_create_run_dir" 
     1704} 
Note: See TracChangeset for help on using the changeset viewer.