Changeset 25678
- Timestamp:
- Sep 29, 2009, 9:53:32 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/20090715/psModules/src/objects/models/pmModel_PS1_V1.c
r25351 r25678 323 323 324 324 // 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; 329 328 330 329 // perform a type of bisection to find the value
Note:
See TracChangeset
for help on using the changeset viewer.
