Changeset 1574 for trunk/libIGCM/ins_job


Ignore:
Timestamp:
02/06/23 10:10:12 (15 months ago)
Author:
aclsce
Message:

Modified debug run_dir functionality to copy the arch.env into the run_directory.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/ins_job

    r1569 r1574  
    560560  # openMPthreads : NUMBER OF OpenMP THREADS 
    561561 
     562  # File name for Job_debug 
     563  n_f='Job_debug_'${JobName}; 
     564  [[ ${x_v} = 'verbose' ]] && print - "\nWorking with file ${F_CFG}\nin directory ${j}\nfor ${n_f}"; 
     565  sed -e "/^${W_W} */ s///" \ 
     566      -e "/^${W_P}/d"       \ 
     567      -e "s%::modipsl::%${F_MOD}%" \ 
     568      -e "s/::Jobname::/${JobName}/" \ 
     569      -e "s/::default_project::/${ProjectID}/" \ 
     570      -e "s/::WallTime::/${WallTime}/" \ 
     571      ${F_JOB_DEBUG} > ${libIGCM}'/'${n_f} 
     572  chmod u+x ${libIGCM}'/'${n_f} 
     573 
     574  # update Headers so that ressources description are accurate (MPMD/SPMD/...) 
     575  IGCM_sys_updateHeaders ${libIGCM}'/'${n_f} 
     576 
    562577  # File name for Job 
    563578  n_f='Job_'${JobName}; 
     
    575590  # update Headers so that ressources description are accurate (MPMD/SPMD/...) 
    576591  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} 
    592592   
    593593done 
     
    601601  i_f=${i##*/}; 
    602602  [[ ${i_f} = 'AA_job' ]] && { continue; } 
     603  [[ ${i_f} = 'AA_job_debug' ]]  && { continue; } 
    603604  j=${i%/*}; n_f=${i_f#AA_}'.job'; 
    604605  [[ ${x_f} = 'false' ]] && [[ -f ${j}'/'${n_f} ]] && { ins_job_Warning; continue; } 
Note: See TracChangeset for help on using the changeset viewer.