# | 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 | ; |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |