| 166 |
|
/* print all values if requested */ |
| 167 |
|
if (explicate) |
| 168 |
|
printvals(); |
| 169 |
< |
/* run simulation */ |
| 169 |
> |
/* build octree */ |
| 170 |
|
oconv(); |
| 171 |
+ |
/* check date on ambient file */ |
| 172 |
+ |
checkambfile(); |
| 173 |
+ |
/* run simulation */ |
| 174 |
|
renderopts(ropts); |
| 175 |
|
xferopts(ropts); |
| 176 |
|
if (rvdevice != NULL) |
| 557 |
|
} |
| 558 |
|
|
| 559 |
|
|
| 560 |
+ |
checkambfile() /* check date on ambient file */ |
| 561 |
+ |
{ |
| 562 |
+ |
long afdate; |
| 563 |
+ |
|
| 564 |
+ |
if (vdef(AMBFILE)) { |
| 565 |
+ |
afdate = fdate(vval(AMBFILE)); |
| 566 |
+ |
if (afdate >= 0 & octreedate > afdate) |
| 567 |
+ |
rmfile(vval(AMBFILE)); |
| 568 |
+ |
} |
| 569 |
+ |
} |
| 570 |
+ |
|
| 571 |
+ |
|
| 572 |
|
double |
| 573 |
|
ambval() /* compute ambient value */ |
| 574 |
|
{ |
| 1043 |
|
sprintf(rep, " -t %d", (int)(minutes*60)); |
| 1044 |
|
else |
| 1045 |
|
badvalue(REPORT); |
| 1031 |
– |
} |
| 1032 |
– |
/* check date on ambient file */ |
| 1033 |
– |
if (vdef(AMBFILE)) { |
| 1034 |
– |
long afdate = fdate(vval(AMBFILE)); |
| 1035 |
– |
if (afdate >= 0 & octreedate > afdate) |
| 1036 |
– |
rmfile(vval(AMBFILE)); |
| 1046 |
|
} |
| 1047 |
|
/* do each view */ |
| 1048 |
|
vn = 0; |