139 |
|
</WindowElement> |
140 |
|
'; |
141 |
|
# Clean up temporary files and exit |
142 |
< |
if ( $persistfile ) { |
143 |
< |
open(PFI, "< $persistfile"); |
142 |
> |
if ( $persistfile && open(PFI, "< $persistfile") ) { |
143 |
|
while (<PFI>) { |
144 |
|
s/^[^ ]* //; |
145 |
|
kill('ALRM', $_); |
147 |
|
} |
148 |
|
close PFI; |
149 |
|
} |
150 |
< |
system "rm -rf $td"; |
151 |
< |
exit 0; |
150 |
> |
exec("rm -rf $td"); |
151 |
> |
|
152 |
|
#-------------- End of main program segment --------------# |
153 |
|
|
154 |
|
#++++++++++++++ Tensor tree BSDF generation ++++++++++++++# |
203 |
|
out_square_y = (out_square_b + 1)/2; |
204 |
|
'; |
205 |
|
# Announce ourselves in XML output |
206 |
< |
print " <DataDefinition>\n"; |
207 |
< |
print " <IncidentDataStructure>TensorTree$tensortree</IncidentDataStructure>\n"; |
208 |
< |
print " </DataDefinition>\n"; |
206 |
> |
print "\t<DataDefinition>\n"; |
207 |
> |
print "\t\t<IncidentDataStructure>TensorTree$tensortree</IncidentDataStructure>\n"; |
208 |
> |
print "\t</DataDefinition>\n"; |
209 |
|
# Fork parallel rtcontrib processes to compute each side |
210 |
|
if ( $doback ) { |
211 |
|
for (my $proc = 0; $proc < $nproc; $proc++) { |