88 |
|
register int i; |
89 |
|
|
90 |
|
if (h <= -hlim) { /* left region */ |
91 |
< |
d = (double)(h+hlim)/SAMPDENS; |
91 |
> |
d = (double)(h+hlim)/sampdens; |
92 |
|
if (d <= -1.0+FTINY) |
93 |
|
return; |
94 |
|
tanb = d/sqrt(1.0-d*d); |
102 |
|
return; |
103 |
|
} |
104 |
|
if (h >= hlim) { /* right region */ |
105 |
< |
d = (double)(h-hlim)/SAMPDENS; |
105 |
> |
d = (double)(h-hlim)/sampdens; |
106 |
|
if (d >= 1.0-FTINY) |
107 |
|
return; |
108 |
|
tanb = d/sqrt(1.0-d*d); |
265 |
|
sp->dom = 0.0; |
266 |
|
sp->dir[0] = sp->dir[1] = sp->dir[1] = 0.0; |
267 |
|
sp->brt = 0.0; |
268 |
+ |
n = 0; |
269 |
|
for (ss = sp->first; ss != NULL; ss = ss->next) { |
270 |
|
sp->brt += ss->brsum; |
271 |
|
n += ss->r - ss->l; |