Changeset 1401 for trunk/libIGCM/ins_job


Ignore:
Timestamp:
07/07/17 10:41:03 (7 years ago)
Author:
sdipsl
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/ins_job

    r1391 r1401  
    3333  -v                  : verbose mode 
    3434  -e                  : turn on ensemble mode (hindcast/forecast or date restart) 
     35  -f                  : ins_job is force to create jobs even if they already exist 
    3536on curie only :  
    3637  -p project          : add default project on curie 
     
    7677x_v='silencious'; 
    7778x_e=false; 
     79x_f=false; 
    7880x_p=false; 
    7981x_c=false; 
    8082x_m=false; 
    81 while getopts :hvec:p:m: V ; do 
     83while getopts :hvefc:p:m: V ; do 
    8284  case $V in 
    8385  (h)  ins_job_Usage; exit 0;; 
    8486  (v)  x_v='verbose';; 
    8587  (e)  x_e=true;; 
     88  (f)  x_f=true;; 
    8689  (p)  x_p=true 
    8790       ProjectID=${OPTARG} ;; 
     
    368371  # File name for Job 
    369372  n_f='Job_'${JobName}; 
    370   [[ -f ${j}'/'${n_f} ]] && { ins_job_Warning; continue; } 
     373  [[ ${x_f} = 'false' ]] && [[ -f ${j}'/'${n_f} ]] && { ins_job_Warning; continue; } 
    371374  [[ ${x_v} = 'verbose' ]] && print - "\nWorking with file ${F_CFG}\nin directory ${j}\nfor ${n_f}"; 
    372375  sed -e "/^${W_W} */ s///" \ 
     
    391394  [[ ${i_f} = 'AA_job' ]] && { continue; } 
    392395  j=${i%/*}; n_f=${i_f#AA_}'.job'; 
    393   [[ -f ${j}'/'${n_f} ]] && { ins_job_Warning; continue; } 
     396  [[ ${x_f} = 'false' ]] && [[ -f ${j}'/'${n_f} ]] && { ins_job_Warning; continue; } 
    394397  [[ ${x_v} = 'verbose' ]] && print - "\nIn directory ${j}\n${i_f} -> ${n_f}" 
    395398  sed -e "/^${W_W} */ s///" \ 
Note: See TracChangeset for help on using the changeset viewer.