# | Line 215 | Line 215 | register int sn; /* source number */ | |
---|---|---|
215 | } | |
216 | if (dstrsrc > FTINY) { | |
217 | /* distribute source direction */ | |
218 | < | for (i = 0; i < 3; i++) |
219 | < | vd[i] = dstrsrc * source[sn].ss * (1.0 - 2.0*frandom()); |
220 | < | |
218 | > | dimlist[ndims++] = sn; |
219 | > | for (i = 0; i < 3; i++) { |
220 | > | dimlist[ndims] = i + 8831; |
221 | > | vd[i] = dstrsrc * source[sn].ss * |
222 | > | (1.0 - 2.0*urand(ilhash(dimlist,ndims+1)+samplendx)); |
223 | > | } |
224 | > | ndims--; |
225 | if (norm != NULL) { /* project offset */ | |
226 | d = DOT(vd, norm); | |
227 | for (i = 0; i < 3; i++) |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |