| 315 |
|
error(USER, "missing octree argument"); |
| 316 |
|
rtargv[rtargc++] = octree = argv[i]; |
| 317 |
|
rtargv[rtargc] = NULL; |
| 318 |
< |
/* start rtrace & compute contributions */ |
| 318 |
> |
/* start rtrace */ |
| 319 |
|
init(nprocs); |
| 320 |
|
if (recover) /* perform recovery if requested */ |
| 321 |
|
recover_output(stdin); |
| 322 |
< |
trace_contribs(stdin); |
| 322 |
> |
trace_contribs(stdin); /* compute contributions */ |
| 323 |
|
quit(0); |
| 324 |
|
} |
| 325 |
|
|
| 1030 |
|
error(USER, "cannot recover from command"); |
| 1031 |
|
/* open output */ |
| 1032 |
|
fp = fopen(oname, "rb+"); |
| 1033 |
< |
if (fp == NULL) |
| 1034 |
< |
break; /* must be end of modifier */ |
| 1033 |
> |
if (fp == NULL) { |
| 1034 |
> |
if (j) |
| 1035 |
> |
break; /* assume end of modifier */ |
| 1036 |
> |
sprintf(errmsg, "missing recover file '%s'", |
| 1037 |
> |
oname); |
| 1038 |
> |
error(USER, errmsg); |
| 1039 |
> |
} |
| 1040 |
|
nvals = lseek(fileno(fp), 0, SEEK_END); |
| 1041 |
|
if (nvals <= 0) { |
| 1042 |
|
lastout = 0; /* empty output, quit here */ |
| 1090 |
|
if (lastout < 0) { |
| 1091 |
|
error(WARNING, "no output files to recover"); |
| 1092 |
|
return; |
| 1093 |
+ |
} |
| 1094 |
+ |
if (raysleft && lastout >= raysleft) { |
| 1095 |
+ |
error(WARNING, "output appears to be complete"); |
| 1096 |
+ |
/* XXX should read & discard input? */ |
| 1097 |
+ |
quit(0); |
| 1098 |
|
} |
| 1099 |
|
/* seek on all files */ |
| 1100 |
|
nvals = lastout * outvsiz; |