IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 4, 2008, 2:18:44 PM (18 years ago)
Author:
eugene
Message:

new macro to test presence of required globals; change globals to upper case

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/diff.pro

    r14693 r16298  
    1 ### This file contains panTasks definitions for performing the image differencing.
     1## diff.pro : image difference analysis : -*- sh -*-
    22
    3 ### After a difference (with associated diff_id) is defined, the difference is performed
    4 ### (tasks in diffSkyfile).
     3## This file contains panTasks definitions for performing the image differencing.
     4## After a difference (with associated diff_id) is defined, the difference is performed
     5## (tasks in diffSkyfile).
    56
    6 
    7 ### Setups
    8 if ($?network == 0)
    9   $network = 1
    10 end
    11 if ($?parallel == 0)
    12   $parallel = 0
    13 end
    14 if ($?VERBOSE == 0)
    15   echo "VERBOSE not defined: load pantasks.pro first"
    16   break
    17 end
    18 if ($?LOGDIR == 0)
    19   echo "LOGDIR not defined: load pantasks.pro first"
    20   break
    21 end
     7# test for required global variables
     8check.globals
    229
    2310$LOGSUBDIR = $LOGDIR/diff
     
    6653  host         local
    6754
    68   periods      -poll $loadpoll
    69   periods      -exec $loadexec
     55  periods      -poll $LOADPOLL
     56  periods      -exec $LOADEXEC
    7057  periods      -timeout 30
    7158  npending     1
     
    120107    book npages diffSkyfile -var N
    121108    if ($N == 0) break
    122     if ($network == 0) break
     109    if ($NETWORK == 0) break
    123110   
    124111    # look for new images in diffSkyfile (pantaskState == INIT)
     
    133120    # specify choice of remote host
    134121    # XXX need to choose based on diffs
    135     if ($parallel)
     122    if ($PARALLEL)
    136123      host anyhost
    137124    else
Note: See TracChangeset for help on using the changeset viewer.