Changeset 20 for CDB


Ignore:
Timestamp:
02/06/12 15:35:53 (8 years ago)
Author:
lalibert
Message:

Added time differentiation capability in driver.sh

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CDB/trunk/driver/driver.sh

    r1 r20  
    66NUM_PROC=1 
    77DEBUG_FLAG="" 
     8TIME_DIFF_FLAG="" 
    89PBS_INSTRUCTION="" 
    910QUEUE="" 
    1011PBS_SUBMIT=0 
    11 while getopts :hDSPq:j: opt; do 
     12while getopts :hDTSPq:j: opt; do 
    1213  case $opt in 
    1314    h) 
     
    2627      echo "         use advanced options that are not documented yet." 
    2728      echo "D:       Debug flag. Use ONLY if the scripts will be actively monitored." 
     29      echo "T:       Time derivative flag. The retrieval script will output bash variables for the next before and the year after." 
     30      echo "         Will crash runs that end at the very end of the period." 
    2831      echo "" 
    2932      echo "F. Laliberte and P. J. Kushner, 2012, University of Toronto" 
     
    4447      QUEUE="-q $OPTARG" 
    4548      PBS_INSTRUCTION="-P" 
     49    ;; 
     50    T) 
     51      TIME_DIFF_FLAG="--time_diff" 
    4652    ;; 
    4753    D) 
     
    109115                                        ${PBS_INSTRUCTION} ${QUEUE}\ 
    110116                                        --y_async=${NUM_PROC}\ 
    111                                         ${DEBUG_FLAG} 
     117                                        ${DEBUG_FLAG}\ 
     118                                        ${TIME_DIFF_FLAG} 
    112119            if [ "$PBS_SUBMIT" -eq "1" ]; then 
    113120                echo "$CDB_MODEL, ${CDB_RUN_ID} for ${CDB_EXPT}" 
Note: See TracChangeset for help on using the changeset viewer.