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_RGAUSS.c

    r25351 r25679  
    314314    // choose a z value guaranteed to be beyond our limit
    315315    float z0 = pow((1.0 / limit), (1.0 / PAR[PM_PAR_7]));
     316    psAssert (isfinite(z0, "fix this code: z0 should not be nan for %f", PAR[PM_PAR_7]));
    316317    float z1 = (1.0 / limit);
     318    psAssert (isfinite(z1, "fix this code: z1 should not be nan for %f", PAR[PM_PAR_7]));
    317319    z1 = PS_MAX (z0, z1);
    318320    z0 = 0.0;
Note: See TracChangeset for help on using the changeset viewer.