218 |
|
wt > (d = 0.8*intens(rcol)*r->rweight/(ambdiv*minweight))) |
219 |
|
wt = d; /* avoid ray termination */ |
220 |
|
n = sqrt(ambdiv * wt) + 0.5; |
221 |
< |
i = 1 + 8*(ambacc > FTINY); /* minimum number of samples */ |
221 |
> |
i = 1 + 5*(ambacc > FTINY); /* minimum number of samples */ |
222 |
|
if (n < i) |
223 |
|
n = i; |
224 |
|
/* allocate sampling array */ |
694 |
|
return(0); |
695 |
|
|
696 |
|
if ((ra == NULL) & (pg == NULL) & (dg == NULL) || |
697 |
< |
(hp->sampOK < 0) | (hp->ns < 9)) { |
697 |
> |
(hp->sampOK < 0) | (hp->ns < 6)) { |
698 |
|
free(hp); /* Hessian not requested/possible */ |
699 |
|
return(-1); /* value-only return value */ |
700 |
|
} |