Changeset 1574


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.

Location:
trunk/libIGCM
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/AA_job_debug

    r1572 r1574  
    179179#-Q- mesoipsl . /etc/profile.d/modules.sh 
    180180 
    181 . ::ENVFILE:: 
     181. ./arch.env 
    182182 
    183183module list 
    184184 
     185# Enable the copy of binary files from modipsl directory (default n) 
     186# Could be useful in case of modifications (and so recompilation) in the sources 
     187copy_executable=n 
     188 
    185189#D------------------------------------------------------ 
    186190#D- EXECUTION 
    187 #D-     - Copy binary files from modipsl directory 
     191#D-     - Copy binary files from modipsl directory (only if copy_executable=y) 
    188192#D-     - Remove of some out restart files  
    189193#D-     - Execution 
     
    192196cd ${SUBMIT_DIR} 
    193197 
     198if [ X${copy_executable} = Xy ] ; then 
    194199while read EXEIN EXEOUT ;do 
    195200 eval EXEIN=${EXEIN} 
    196201 cp ${MODIPSL}/bin/${EXEIN} ${EXEOUT} 
    197202done < components_binary.txt 
     203fi 
    198204 
    199205if [ X${SRF_comp} = Xy ] ; then 
  • 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; } 
  • trunk/libIGCM/libIGCM_sys/libIGCM_sys.ksh

    r1569 r1574  
    16681668      done 
    16691669   SUBMIT_DIRECTORY=$(grep SUBMIT_DIR ${libIGCM}/libIGCM_sys/libIGCM_sys_${SYSTEM}.ksh | grep -m1 typeset | cut -dx -f2) 
    1670       sed -e "s%::ENVFILE::%${EnvFile}%" \ 
    1671           -e "s%::EXECUTION::%${EXECUTION}%" \ 
     1670      sed -e "s%::EXECUTION::%${EXECUTION}%" \ 
    16721671          -e "s%::EXECUTION_TYPE::%${executionType}%" \ 
    16731672          -e "s%::JOBNAME::%${config_UserChoices_JobName}%" \ 
     
    16781677          -e "s%::CHM_comp::%${CHM_comp}%" \ 
    16791678          ${libIGCM}/Job_debug_${config_UserChoices_JobName} > ${RUN_DIR}/Job_debug_${config_UserChoices_JobName} 
     1679      cp ${EnvFile} ${RUN_DIR}/. 
    16801680      echo 
    16811681      echo "############################################" 
Note: See TracChangeset for help on using the changeset viewer.