43 |
|
int imm_irrad = 0; /* compute immediate irradiance? */ |
44 |
|
int lim_dist = 0; /* limit distance? */ |
45 |
|
|
46 |
+ |
int report_intvl = 0; /* reporting interval (seconds) */ |
47 |
+ |
|
48 |
|
const char *modname[MAXMODLIST]; /* ordered modifier name list */ |
49 |
|
int nmods = 0; /* number of modifiers */ |
50 |
|
|
51 |
|
void (*addobjnotify[8])() = {ambnotify, NULL}; |
52 |
|
|
53 |
< |
char RCCONTEXT[] = "RC"; /* our special evaluation context */ |
53 |
> |
char RCCONTEXT[] = "RC."; /* our special evaluation context */ |
54 |
|
|
55 |
|
|
56 |
|
static void |
182 |
|
progname = argv[0] = fixargv0(argv[0]); |
183 |
|
gargv = argv; |
184 |
|
gargc = argc; |
185 |
+ |
#if defined(_WIN32) || defined(_WIN64) |
186 |
+ |
_setmaxstdio(2048); /* increase file limit to maximum */ |
187 |
+ |
#endif |
188 |
|
/* initialize calcomp routines early */ |
189 |
|
initfunc(); |
190 |
|
setcontext(RCCONTEXT); |
297 |
|
check(2,"s"); |
298 |
|
addmodfile(argv[++i], curout, prms, binval, bincnt); |
299 |
|
break; |
300 |
+ |
case 't': /* reporting interval */ |
301 |
+ |
check(2,"i"); |
302 |
+ |
report_intvl = atoi(argv[++i]); |
303 |
+ |
break; |
304 |
|
default: |
305 |
|
goto badopt; |
306 |
|
} |
372 |
|
|
373 |
|
badopt: |
374 |
|
fprintf(stderr, |
375 |
< |
"Usage: %s [-n nprocs][-V][-r][-e expr][-f source][-o ospec][-p p1=V1,p2=V2][-b binv][-bn N] {-m mod | -M file} [rtrace options] octree\n", |
375 |
> |
"Usage: %s [-n nprocs][-V][-c count][-r][-e expr][-f source][-o ospec][-p p1=V1,p2=V2][-b binv][-bn N] {-m mod | -M file} [rtrace options] octree\n", |
376 |
|
progname); |
377 |
|
sprintf(errmsg, "command line error at '%s'", argv[i]); |
378 |
|
error(USER, errmsg); |