IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 4, 2011, 1:13:59 PM (15 years ago)
Author:
eugene
Message:

minor fixes from eam branch

Location:
trunk/ppSub
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppSub

    • Property svn:ignore
      •  

        old new  
        1717test
        1818Doxyfile
         19a.out.dSYM
  • trunk/ppSub/src/ppSubArguments.c

    r29937 r31156  
    5757}
    5858
     59void ppSubSetThreads (void) {
     60    // ppSub does not have any of its own thread handlers
     61    return;
     62}
     63
    5964bool ppSubArguments(int argc, char *argv[], ppSubData *data)
    6065{
     
    6267    pmConfig *config = data->config;
    6368    assert(config);
     69
     70    // generic arguments (version, dumpconfig)
     71    PS_ARGUMENTS_GENERIC( ppSub, config, argc, argv );
     72
     73    // thread arguments
     74    PS_ARGUMENTS_THREADS( ppSub, config, argc, argv )
    6475
    6576    int argNum = psArgumentGet(argc, argv, "-debug"); // Debugging argument number
     
    8293    psMetadataAddStr(arguments, PS_LIST_TAIL, "-stats", 0, "Statistics file", NULL);
    8394    psMetadataAddStr(arguments,  PS_LIST_TAIL, "-stamps", 0, "Stamps filename; x,y on each line", NULL);
    84     psMetadataAddS32(arguments, PS_LIST_TAIL, "-threads", 0, "Number of threads", 0);
    85     psMetadataAddStr(arguments, PS_LIST_TAIL, "-dumpconfig", 0, "file to dump configuration to", NULL);
    8695    psMetadataAddS32(arguments, PS_LIST_TAIL, "-convolve", 0, "Image to convolve [1 or 2]", 0);
    8796    psMetadataAddBool(arguments, PS_LIST_TAIL, "-photometry", 0, "Perform photometry?", NULL);
     
    166175    }
    167176
    168     int threads = psMetadataLookupS32(NULL, arguments, "-threads"); // Number of threads
    169     if (threads > 0) {
    170         if (!psThreadPoolInit(threads)) {
    171             psError(psErrorCodeLast(), false, "Unable to setup %d threads", threads);
    172             return false;
    173         }
    174     }
    175 
    176177    psTrace("ppSub", 1, "Done reading command-line arguments\n");
    177178
Note: See TracChangeset for help on using the changeset viewer.