Changeset 1597 for trunk/libIGCM


Ignore:
Timestamp:
09/18/23 11:31:09 (8 months ago)
Author:
jgipsl
Message:

Added option -n for not overwriting existing job (in opposite to the -f which overwrites). No overwriting has always been the default.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/ins_job

    r1584 r1597  
    3434  -e                  : turn on ensemble mode (hindcast/forecast or date restart) 
    3535  -f                  : ins_job force overwrite jobs if they already exist 
     36  -n                  : ins_job do not overwrite jobs (default) 
    3637 
    3738More options on irene only :  
     
    8283x_v='silencious'; 
    8384x_e=false; 
    84 x_f=false; 
     85x_f=def; 
    8586x_p=false; 
    8687x_q=false; 
     
    8889x_m=false; 
    8990x_t=false; 
    90 while getopts :hvefc:p:m:q:s:t: V ; do 
     91while getopts :hvefnp:q:c:m:t: V ; do 
    9192  case $V in 
    9293  (h)  ins_job_Usage; exit 0;; 
     
    9495  (e)  x_e=true;; 
    9596  (f)  x_f=true;; 
     97  (n)  x_f=false;; 
    9698  (p)  x_p=true 
    9799       ProjectID=${OPTARG} ;; 
     
    132134print "Create job in current folder and post-treatment jobs in libIGCM folder.\n" 
    133135 
    134 if [ ${x_f} = 'false' ] ; then 
     136if [ ${x_f} = 'def' ] ; then 
    135137    answer="" 
    136138    print "Do you want to overwrite existing jobs? Answer yes/no: (or hit enter for no) " 
     
    138140    if ( [ X${answer} == Xyes ] || [ X${answer} == Xy ] ) ; then 
    139141        x_f=true 
     142    else 
     143        x_f=false 
    140144    fi 
    141145fi 
Note: See TracChangeset for help on using the changeset viewer.