IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 29, 2009, 9:58:47 PM (17 years ago)
Author:
eugene
Message:

add asserts to catch bad radius tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/20090715/psModules/src/objects/models/pmModel_QGAUSS.c

    r25351 r25679  
    321321    // choose a z value guaranteed to be beyond our limit
    322322    float z0 = pow((1.0 / limit), (1.0 / 2.25));
     323    psAssert (isfinite(z0, "fix this code: z0 should not be nan for %f", PAR[PM_PAR_7]));
    323324    float z1 = (1.0 / limit) / PAR[PM_PAR_7];
     325    psAssert (isfinite(z1, "fix this code: z1 should not be nan for %f", PAR[PM_PAR_7]));
    324326    z1 = PS_MAX (z0, z1);
    325327    z0 = 0.0;
Note: See TracChangeset for help on using the changeset viewer.