Changeset 1569 for trunk/libIGCM/ins_job


Ignore:
Timestamp:
12/15/22 11:08:40 (19 months ago)
Author:
aclsce
Message:

Added fonctionality to create RUN_DIR and Job_debug to be launched directly in the RUN_DIR directory.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/ins_job

    r1568 r1569  
    120120F_JOB=${libIGCM}'/AA_job'; 
    121121[[ ! -f ${F_JOB} ]] && { print - "${F_JOB} unreachable"; exit 3; } 
     122F_JOB_DEBUG=${libIGCM}'/AA_job_debug'; 
     123[[ ! -f ${F_JOB_DEBUG} ]] && { print - "${F_JOB_DEBUG} unreachable"; exit 3; } 
    122124F_RCI=${libIGCM}'/run.card.init'; 
    123125[[ ! -f ${F_RCI} ]] && { print - "${F_RCI} unreachable"; exit 3; } 
     
    573575  # update Headers so that ressources description are accurate (MPMD/SPMD/...) 
    574576  IGCM_sys_updateHeaders ${j}'/'${n_f} 
     577 
     578  n_f='Job_debug_'${JobName}; 
     579  [[ ${x_f} = 'false' ]] && [[ -f ${j}'/'${n_f} ]] && { ins_job_Warning; continue; } 
     580  [[ ${x_v} = 'verbose' ]] && print - "\nWorking with file ${F_CFG}\nin directory ${j}\nfor ${n_f}"; 
     581  sed -e "/^${W_W} */ s///" \ 
     582      -e "/^${W_P}/d"       \ 
     583      -e "s%::modipsl::%${F_MOD}%" \ 
     584      -e "s/::Jobname::/${JobName}/" \ 
     585      -e "s/::default_project::/${ProjectID}/" \ 
     586      -e "s/::WallTime::/${WallTime}/" \ 
     587      ${F_JOB_DEBUG} > ${libIGCM}'/'${n_f} 
     588  chmod u+x ${libIGCM}'/'${n_f} 
     589 
     590  # update Headers so that ressources description are accurate (MPMD/SPMD/...) 
     591  IGCM_sys_updateHeaders ${libIGCM}'/'${n_f} 
     592   
    575593done 
    576594 
Note: See TracChangeset for help on using the changeset viewer.