Ignore:
Timestamp:
04/25/23 14:26:44 (12 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/ins_job

    r1567 r1585  
    116116#  { print - "directory 'modipsl' unreachable"; exit 3; } 
    117117W_W=${d_n}'/../libIGCM' 
     118#W_W=${d_n}  # S.Senesi - not sure of the intent in line above, but that clashes with using a symbolic link for libIGCM in modipsl/, which is must useful for development 
    118119[[ ! -d ${W_W} ]] && { print - "${W_W} unreachable"; exit 3; } 
    119120libIGCM=$(cd ${W_W};/bin/pwd;) 
    120121F_JOB=${libIGCM}'/AA_job'; 
    121122[[ ! -f ${F_JOB} ]] && { print - "${F_JOB} unreachable"; exit 3; } 
     123F_JOB_DEBUG=${libIGCM}'/AA_job_debug'; 
     124[[ ! -f ${F_JOB_DEBUG} ]] && { print - "${F_JOB_DEBUG} unreachable"; exit 3; } 
    122125F_RCI=${libIGCM}'/run.card.init'; 
    123126[[ ! -f ${F_RCI} ]] && { print - "${F_RCI} unreachable"; exit 3; } 
     
    404407  echo MPIEnvironment is ${MPIEnvironment} 
    405408 
    406 elif [ X"${SYSTEM}" == "Xlxiv8" ] || [ X"${SYSTEM}" == "Xifort_CICLAD" ] ; then 
     409elif [ X"${SYSTEM}" == "Xobelix" ] || [ X"${SYSTEM}" == "Xifort_CICLAD" ] ; then 
    407410  # obelix, ciclad, climserv 
    408411  echo "" 
     
    558561  # openMPthreads : NUMBER OF OpenMP THREADS 
    559562 
     563  # File name for Job_debug 
     564  n_f='Job_debug_'${JobName}; 
     565  [[ ${x_v} = 'verbose' ]] && print - "\nWorking with file ${F_CFG}\nin directory ${j}\nfor ${n_f}"; 
     566  sed -e "/^${W_W} */ s///" \ 
     567      -e "/^${W_P}/d"       \ 
     568      -e "s%::modipsl::%${F_MOD}%" \ 
     569      -e "s/::Jobname::/${JobName}/" \ 
     570      -e "s/::default_project::/${ProjectID}/" \ 
     571      -e "s/::WallTime::/${WallTime}/" \ 
     572      ${F_JOB_DEBUG} > ${libIGCM}'/'${n_f} 
     573  chmod u+x ${libIGCM}'/'${n_f} 
     574 
     575  # update Headers so that ressources description are accurate (MPMD/SPMD/...) 
     576  IGCM_sys_updateHeaders ${libIGCM}'/'${n_f} 
     577 
    560578  # File name for Job 
    561579  n_f='Job_'${JobName}; 
     
    573591  # update Headers so that ressources description are accurate (MPMD/SPMD/...) 
    574592  IGCM_sys_updateHeaders ${j}'/'${n_f} 
     593   
    575594done 
    576595 
     
    583602  i_f=${i##*/}; 
    584603  [[ ${i_f} = 'AA_job' ]] && { continue; } 
     604  [[ ${i_f} = 'AA_job_debug' ]]  && { continue; } 
    585605  j=${i%/*}; n_f=${i_f#AA_}'.job'; 
    586606  [[ ${x_f} = 'false' ]] && [[ -f ${j}'/'${n_f} ]] && { ins_job_Warning; continue; } 
Note: See TracChangeset for help on using the changeset viewer.