IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 25262


Ignore:
Timestamp:
Sep 2, 2009, 11:48:22 PM (17 years ago)
Author:
Paul Price
Message:

Fixing iteration range.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/pap/psphot/src/psphotFake.c

    r25261 r25262  
    8282
    8383    psRandom *rng = psRandomAlloc(PS_RANDOM_TAUS); // Random number generator
    84     for (int i = 0, index = 0; i <= numBins; i++) {
     84    for (int i = 0, index = 0; i < numBins; i++) {
    8585        float mag = refMag + magOffsets->data.F32[i]; // Instrumental magnitude of sources
    8686
    87         for (int j = 0; j <= numSources; j++, index++) {
     87        for (int j = 0; j < numSources; j++, index++) {
    8888            xAll->data.F32[index] = psRandomUniform(rng) * numCols;
    8989            yAll->data.F32[index] = psRandomUniform(rng) * numRows;
Note: See TracChangeset for help on using the changeset viewer.