44 |
|
int ambincl = -1; /* photon port flag */ |
45 |
|
char *amblist [AMBLLEN + 1]; /* photon port list */ |
46 |
|
char *diagFile = NULL; /* diagnostics output file */ |
47 |
+ |
int rand_samp = 1; /* uncorrelated random sampling */ |
48 |
|
|
49 |
|
|
49 |
– |
|
50 |
|
/* Dummies for linkage */ |
51 |
|
|
52 |
|
COLOR ambval = BLKCOLOR; |
119 |
|
badarg(argc - i - 1,argv + i + 1, al)) \ |
120 |
|
goto badopt |
121 |
|
|
122 |
< |
#define bool(olen, var) switch (argv [i][olen]) { \ |
122 |
> |
#define check_bool(olen, var) switch (argv [i][olen]) { \ |
123 |
|
case '\0': var = !var; break; \ |
124 |
|
case 'y': case 'Y': case 't': case 'T': \ |
125 |
|
case '+': case '1': var = 1; break; \ |
352 |
|
case 'b': |
353 |
|
if (argv [i][2] == 'v') { |
354 |
|
/* Back face visibility */ |
355 |
< |
bool(3, backvis); |
355 |
> |
check_bool(3, backvis); |
356 |
|
} |
357 |
|
|
358 |
|
else goto badopt; |
382 |
|
case 'f': |
383 |
|
if (argv [i][2] == 'o') { |
384 |
|
/* Force overwrite */ |
385 |
< |
bool(3, clobber); |
385 |
> |
check_bool(3, clobber); |
386 |
|
} |
387 |
|
|
388 |
|
else goto badopt; |
485 |
|
error(USER, errmsg); |
486 |
|
|
487 |
|
#undef check |
488 |
< |
#undef bool |
488 |
> |
#undef check_bool |
489 |
|
return 0; |
490 |
|
} |