IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 30173


Ignore:
Timestamp:
Dec 24, 2010, 3:26:13 PM (15 years ago)
Author:
eugene
Message:

limit modelFits allocation to max allowed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20101205/psphot/src/psphotExtendedSourceFits.c

    r30101 r30173  
    342342
    343343        // array to store the pointers to the model flux images while the models are being fitted
    344         psArray *modelFluxes = psArrayAllocEmpty (4);
     344        psArray *modelFluxes = psArrayAllocEmpty (models->list->n);
    345345
    346346        // allocate the array to store the model fits
    347347        if (source->modelFits == NULL) {
    348             source->modelFits = psArrayAllocEmpty (4);
     348            source->modelFits = psArrayAllocEmpty (models->list->n);
    349349        }
    350350
Note: See TracChangeset for help on using the changeset viewer.