IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 25678


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

do not fail is PAR_7 is 0.0 or less

File:
1 edited

Legend:

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

    r25351 r25678  
    323323
    324324    // choose a z value guaranteed to be beyond our limit
    325     float z0 = pow((1.0 / limit), (1.0 / ALPHA));
    326     float z1 = (1.0 / limit) / PAR[PM_PAR_7];
    327     z1 = PS_MAX (z0, z1);
    328     z0 = 0.0;
     325    float z0 = 0.0;
     326    float z1 = pow((1.0 / limit), (1.0 / ALPHA));
     327    if (PAR[PM_PAR_7] < 0.0) z1 *= 2.0;
    329328
    330329    // perform a type of bisection to find the value
Note: See TracChangeset for help on using the changeset viewer.