43 |
|
int imm_irrad = 0; /* compute immediate irradiance? */ |
44 |
|
int lim_dist = 0; /* limit distance? */ |
45 |
|
|
46 |
< |
const char *modname[MAXMODLIST]; /* ordered modifier name list */ |
47 |
< |
int nmods = 0; /* number of modifiers */ |
46 |
> |
int report_intvl = 0; /* reporting interval (seconds) */ |
47 |
|
|
48 |
+ |
char **modname = NULL; /* ordered modifier name list */ |
49 |
+ |
int nmods = 0; /* number of modifiers */ |
50 |
+ |
int modasiz = 0; /* allocated modifier array size */ |
51 |
+ |
|
52 |
|
void (*addobjnotify[8])() = {ambnotify, NULL}; |
53 |
|
|
54 |
< |
char RCCONTEXT[] = "RC"; /* our special evaluation context */ |
54 |
> |
char RCCONTEXT[] = "RC."; /* our special evaluation context */ |
55 |
|
|
56 |
+ |
#if defined(_WIN32) || defined(_WIN64) |
57 |
+ |
#define RCONTRIB_FEATURES "Accumulation\nSummation\nRecovery\n" \ |
58 |
+ |
"ValueContribution\nImmediateIrradiance\n" \ |
59 |
+ |
"ProgressReporting\nDistanceLimiting\n" \ |
60 |
+ |
"Outputs=V,W\n" |
61 |
+ |
#else |
62 |
+ |
#define RCONTRIB_FEATURES "Multiprocessing\n" \ |
63 |
+ |
"Accumulation\nSummation\nRecovery\n" \ |
64 |
+ |
"ValueContribution\nImmediateIrradiance\n" \ |
65 |
+ |
"ProgressReporting\nDistanceLimiting\n" \ |
66 |
+ |
"Outputs=V,W\n" |
67 |
+ |
#endif |
68 |
|
|
69 |
|
static void |
70 |
|
printdefaults(void) /* print default values to stdout */ |
195 |
|
progname = argv[0] = fixargv0(argv[0]); |
196 |
|
gargv = argv; |
197 |
|
gargc = argc; |
198 |
+ |
/* feature check only? */ |
199 |
+ |
strcat(RFeatureList, RCONTRIB_FEATURES); |
200 |
+ |
if (argc == 2 && !strcmp(argv[1], "-features")) |
201 |
+ |
return feature_status(argc-2, argv+2); |
202 |
+ |
#if defined(_WIN32) || defined(_WIN64) |
203 |
+ |
_setmaxstdio(2048); /* increase file limit to maximum */ |
204 |
+ |
#endif |
205 |
|
/* initialize calcomp routines early */ |
206 |
|
initfunc(); |
207 |
< |
setcontext(RCCONTEXT); |
207 |
> |
calcontext(RCCONTEXT); |
208 |
|
/* option city */ |
209 |
|
for (i = 1; i < argc; i++) { |
210 |
|
/* expand arguments */ |
314 |
|
check(2,"s"); |
315 |
|
addmodfile(argv[++i], curout, prms, binval, bincnt); |
316 |
|
break; |
317 |
+ |
case 't': /* reporting interval */ |
318 |
+ |
check(2,"i"); |
319 |
+ |
report_intvl = atoi(argv[++i]); |
320 |
+ |
break; |
321 |
|
default: |
322 |
|
goto badopt; |
323 |
|
} |
389 |
|
|
390 |
|
badopt: |
391 |
|
fprintf(stderr, |
392 |
< |
"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", |
392 |
> |
"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", |
393 |
|
progname); |
394 |
|
sprintf(errmsg, "command line error at '%s'", argv[i]); |
395 |
|
error(USER, errmsg); |