84 |
|
$rmtmp = "rm -rf $td"; |
85 |
|
} |
86 |
|
my @savedARGV = @ARGV; |
87 |
< |
my $rfluxmtx = "rfluxmtx -ab 5 -ad 700 -lw 3e-6"; |
87 |
> |
my $rfluxmtx = "rfluxmtx -ab 5 -ad 700 -lw 3e-6 -w-"; |
88 |
|
my $wrapper = "wrapBSDF"; |
89 |
|
my $tensortree = 0; |
90 |
|
my $ttlog2 = 4; |
170 |
|
} |
171 |
|
} |
172 |
|
if ( $#dim != 5 ) { |
173 |
< |
@dim = split ' ', `getbbox -h $radscn`; |
173 |
> |
@dim = split ' ', `getbbox -h -w $radscn`; |
174 |
|
} |
175 |
|
die "Device entirely inside room!\n" if ( $dim[4] >= 0 ); |
176 |
|
if ( $dim[5] > 1e-5 ) { |
201 |
|
} |
202 |
|
close MYAVH; |
203 |
|
# Generate octree |
204 |
< |
system "oconv -w $radscn > $octree"; |
204 |
> |
system "oconv -w -f $radscn > $octree"; |
205 |
|
die "Could not compile scene\n" if ( $? ); |
206 |
|
# Add MGF description if requested |
207 |
|
if ( $geout ) { |
249 |
|
} |
250 |
|
print STDERR "Recover using: $0 -recover $td\n"; |
251 |
|
} |
252 |
– |
# Open unbuffered progress file |
253 |
– |
open(MYPH, ">> $td/phase.txt"); |
254 |
– |
{ |
255 |
– |
my $ofh = select MYPH; |
256 |
– |
$| = 1; |
257 |
– |
select $ofh; |
258 |
– |
} |
252 |
|
$curphase = 0; |
253 |
|
# Create data segments (all the work happens here) |
254 |
|
if ( $tensortree ) { |
272 |
|
if ( $recovery > $curphase ) { return 0; } |
273 |
|
if ( $recovery == $curphase ) { return -1; } |
274 |
|
} |
275 |
+ |
open(MYPH, ">> $td/phase.txt"); |
276 |
|
print MYPH "$curphase\n"; |
277 |
+ |
close MYPH; |
278 |
|
return 1; |
279 |
|
} |
280 |
|
|