ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/px/pcond4.c
(Generate patch)

Comparing ray/src/px/pcond4.c (file contents):
Revision 3.4 by greg, Fri Oct 4 17:51:41 1996 UTC vs.
Revision 3.5 by greg, Fri Oct 4 18:11:52 1996 UTC

# Line 180 | Line 180 | double La;
180          };
181          double  l10La;
182          register int    i;
183 <                                        /* interpolate/extrapolate data */
183 >                                        /* check limits */
184 >        if (La <= 7.85e-4)
185 >                return(resfreq[0]);
186 >        if (La >= 1.78e3)
187 >                return(resfreq[NPOINTS-1]);
188 >                                        /* interpolate data */
189          l10La = log10(La);
190          for (i = 0; i < NPOINTS-2 && l10lum[i+1] <= l10La; i++)
191                  ;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines