IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 33410


Ignore:
Timestamp:
Mar 5, 2012, 4:55:14 PM (14 years ago)
Author:
bills
Message:

Don't allow a non-finite PM_PAR_I0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotSersicModelClass.c

    r32348 r33410  
    546546    // set the normalization by linear fit between model and data
    547547    psphotSersicModelNorm (pcm, source);
     548    if (!isfinite(PAR[PM_PAR_I0])) {
     549        fprintf(stderr, "psphotSersicModelClassGuessPCM: psphotSerisicModelNorm set PM_PAR_I0 to NAN\n");
     550        return false;
     551    }
    548552
    549553    if (TIMING) { t5 = psTimerMark ("SersicGuess"); }
Note: See TracChangeset for help on using the changeset viewer.