Changeset 31159
- Timestamp:
- Apr 4, 2011, 1:17:18 PM (15 years ago)
- Location:
- trunk/pswarp
- Files:
-
- 3 edited
-
. (modified) (1 prop)
-
src/pswarpArguments.c (modified) (2 diffs)
-
src/pswarpTransformSources.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pswarp
- Property svn:ignore
-
old new 18 18 pswarp.pc 19 19 Doxyfile 20 a.out.dSYM
-
- Property svn:ignore
-
trunk/pswarp/src/pswarpArguments.c
r27227 r31159 42 42 } 43 43 44 // generic arguments (version, dumpconfig) 45 PS_ARGUMENTS_GENERIC( pswarp, config, argc, argv ); 46 47 // thread arguments 48 PS_ARGUMENTS_THREADS( pswarp, config, argc, argv ) 49 44 50 // save the following additional recipe values based on command-line options 45 51 // these options override the PSWARP recipe values loaded from recipe files … … 76 82 } 77 83 78 // Number of threads79 if ((N = psArgumentGet(argc, argv, "-threads"))) {80 psArgumentRemove(N, &argc, argv);81 int nThreads = atoi(argv[N]);82 psMetadataAddS32(config->arguments, PS_LIST_TAIL, "NTHREADS", 0, "number of warp threads", nThreads);83 psArgumentRemove(N, &argc, argv);84 85 // create the thread pool with number of desired threads, supplying our thread launcher function86 // XXX need to determine the number of threads from the config data87 psThreadPoolInit (nThreads);88 }89 84 pswarpSetThreads(); 90 91 if ((N = psArgumentGet(argc, argv, "-dumpconfig"))) {92 psArgumentRemove(N, &argc, argv);93 psMetadataAddStr(config->arguments, PS_LIST_TAIL, "DUMP_CONFIG", PS_META_REPLACE,94 "Filename for configuration dump", argv[N]);95 psArgumentRemove(N, &argc, argv);96 }97 98 85 99 86 pmConfigFileSetsMD (config->arguments, &argc, argv, "INPUT", "-file", "-list"); -
trunk/pswarp/src/pswarpTransformSources.c
r29000 r31159 94 94 // relative flux) that's OK. 95 95 pmSource *new = pmSourceAlloc(); ///< New source 96 new->peak = pmPeakAlloc(xOut, yOut, source->peak->flux, PM_PEAK_LONE); 97 new->peak->flux = source->peak->flux; 96 new->peak = pmPeakAlloc(xOut, yOut, source->peak->detValue, PM_PEAK_LONE); 97 new->peak->rawFlux = source->peak->rawFlux; 98 new->peak->smoothFlux = source->peak->smoothFlux; 98 99 new->type = source->type; 99 100 new->mode = source->mode;
Note:
See TracChangeset
for help on using the changeset viewer.
