IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 13, 2014, 8:49:28 AM (12 years ago)
Author:
eugene
Message:

call model->class->function instead of model->function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppSim/src/ppSimInsertGalaxies.c

    r34261 r36862  
    154154
    155155        // XXX let the flux limit be a user-defined number of sky sigmas (not just 1.0)
    156         float radius = model->modelRadius (model->params, 0.1*roughNoise);
     156        float radius = model->class->modelRadius (model->params, 0.1*roughNoise);
    157157        radius = PS_MAX (radius, 1.0);
    158158
     
    163163        pmSource *source = pmSourceFromModel (model, readout, radius, PM_SOURCE_TYPE_EXTENDED);
    164164
    165         galaxy->flux = model->modelFlux (model->params);
     165        galaxy->flux = model->class->modelFlux (model->params);
    166166
    167167        // XXX set the mag & err values (should this be done in pmSourceFromModel?)
Note: See TracChangeset for help on using the changeset viewer.