IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 19461


Ignore:
Timestamp:
Sep 10, 2008, 9:34:17 AM (18 years ago)
Author:
Paul Price
Message:

Adding threads.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippScripts/scripts/diff_skycell.pl

    r19396 r19461  
    2525use Pod::Usage qw( pod2usage );
    2626
    27 my ($diff_id, $dbname, $outroot, $verbose, $no_update, $no_op);
     27my ($diff_id, $dbname, $threads, $outroot, $verbose, $no_update, $no_op);
    2828GetOptions(
    2929    'diff_id|d=s'       => \$diff_id, # Diff identifier
    3030    'dbname|d=s'        => \$dbname, # Database name
     31    'threads=d'         => \$threads,   # Number of threads to use
    3132    'outroot=s'         => \$outroot, # Output root name
    3233    'verbose'           => \$verbose,   # Print to stdout
     
    100101            $templateWeight = "PPSTACK.OUTPUT.WEIGHT";
    101102            $templateSources = "PSPHOT.OUT.CMF.MEF";  ## this must be consistent with the value in stack_skycell.pl:161
    102             ## use an explicit stack name for psphot output objects
     103            ## use an explicit stack name for psphot output objects
    103104        } else {
    104105            $templateMask = "PSWARP.OUTPUT.MASK";
     
    192193    $command .= " -refweight $templateWeight";
    193194    $command .= " -stats $outputStats";
     195    $command .= " -threads $threads" if defined $threads;
    194196    $command .= " -recipe PPSTATS WARPSTATS";
    195197    $command .= " -F PSPHOT.OUTPUT PSPHOT.OUT.CMF.MEF";
  • trunk/ippTasks/diff.pro

    r19460 r19461  
    164164    mkdir $outpath
    165165
    166     $run = diff_skycell.pl --diff_id $DIFF_ID --outroot $outroot
     166    $run = diff_skycell.pl --threads @MAX_THREADS@ --diff_id $DIFF_ID --outroot $outroot
    167167    add_standard_args run
    168168
Note: See TracChangeset for help on using the changeset viewer.