Changeset 1401 for trunk/libIGCM/ins_job
- Timestamp:
- 07/07/17 10:41:03 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libIGCM/ins_job
r1391 r1401 33 33 -v : verbose mode 34 34 -e : turn on ensemble mode (hindcast/forecast or date restart) 35 -f : ins_job is force to create jobs even if they already exist 35 36 on curie only : 36 37 -p project : add default project on curie … … 76 77 x_v='silencious'; 77 78 x_e=false; 79 x_f=false; 78 80 x_p=false; 79 81 x_c=false; 80 82 x_m=false; 81 while getopts :hve c:p:m: V ; do83 while getopts :hvefc:p:m: V ; do 82 84 case $V in 83 85 (h) ins_job_Usage; exit 0;; 84 86 (v) x_v='verbose';; 85 87 (e) x_e=true;; 88 (f) x_f=true;; 86 89 (p) x_p=true 87 90 ProjectID=${OPTARG} ;; … … 368 371 # File name for Job 369 372 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; } 371 374 [[ ${x_v} = 'verbose' ]] && print - "\nWorking with file ${F_CFG}\nin directory ${j}\nfor ${n_f}"; 372 375 sed -e "/^${W_W} */ s///" \ … … 391 394 [[ ${i_f} = 'AA_job' ]] && { continue; } 392 395 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; } 394 397 [[ ${x_v} = 'verbose' ]] && print - "\nIn directory ${j}\n${i_f} -> ${n_f}" 395 398 sed -e "/^${W_W} */ s///" \
Note: See TracChangeset
for help on using the changeset viewer.