1 |
< |
/* Copyright (c) 1991 Regents of the University of California */ |
1 |
> |
/* Copyright (c) 1995 Regents of the University of California */ |
2 |
|
|
3 |
|
#ifndef lint |
4 |
|
static char SCCSid[] = "$SunId$ LBL"; |
30 |
|
"-ab", "2", "-ad", "256", "-as", "128", "-aa", ".15", }; |
31 |
|
int rtargc = 14; |
32 |
|
/* overriding rtrace options */ |
33 |
< |
char *myrtopts[] = { "-I-", "-i-", "-ov", "-h-", "-fff", "-y", "0", NULL }; |
33 |
> |
char *myrtopts[] = { "-I-", "-i-", "-ld-", "-ov", "-h-", |
34 |
> |
"-fff", "-y", "0", NULL }; |
35 |
|
|
36 |
|
struct rtproc rt; /* our rtrace process */ |
37 |
|
|
181 |
|
error(SYSTEM, "out of memory in init"); |
182 |
|
rt.nrays = 0; |
183 |
|
/* set up urand */ |
184 |
< |
initurand(2048); |
184 |
> |
initurand(16384); |
185 |
|
} |
186 |
|
|
187 |
|
|
264 |
|
case 'm': /* material name */ |
265 |
|
if (*++cp != '=') |
266 |
|
break; |
267 |
< |
if (!*++cp) |
267 |
> |
if (!*++cp || isspace(*cp)) |
268 |
|
break; |
269 |
|
atos(thisillum.matname, MAXSTR, cp); |
270 |
|
cp = sskip(cp); |
276 |
|
case 'f': /* data file name */ |
277 |
|
if (*++cp != '=') |
278 |
|
break; |
279 |
< |
if (!*++cp) { |
279 |
> |
if (!*++cp || isspace(*cp)) { |
280 |
|
strcpy(thisillum.datafile,thisillum.matname); |
281 |
|
thisillum.dfnum = 0; |
282 |
|
thisillum.flags &= ~IL_DATCLB; |
362 |
|
case 'o': /* output file */ |
363 |
|
if (*++cp != '=') |
364 |
|
break; |
365 |
< |
if (!*++cp) |
365 |
> |
if (!*++cp || isspace(*cp)) |
366 |
|
break; |
367 |
|
atos(buf, sizeof(buf), cp); |
368 |
|
cp = sskip(cp); |
380 |
|
return; |
381 |
|
} |
382 |
|
opterr: /* skip faulty option */ |
383 |
< |
cp = sskip(cp); |
383 |
> |
while (*cp && !isspace(*cp)) |
384 |
> |
cp++; |
385 |
|
nerrs++; |
386 |
|
} |
387 |
|
/* print header? */ |