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

    r25351 r25679  
    287287    // choose a z value guaranteed to be beyond our limit
    288288    float z0 = pow((1.0 / limit), (1.0 / 3.0));
     289    psAssert (isfinite(z0, "fix this code: z0 should not be nan for %f", PAR[PM_PAR_I0]));
    289290    float z1 = (1.0 / limit);
     291    psAssert (isfinite(z1, "fix this code: z1 should not be nan for %f", PAR[PM_PAR_I0]));
    290292    z1 = PS_MAX (z0, z1);
    291293    z0 = 0.0;
Note: See TracChangeset for help on using the changeset viewer.