13 |
|
exit 1; |
14 |
|
} |
15 |
|
my ($td,$radscn,$mgfscn,$octree,$fsender,$bsender,$receivers,$facedat,$behinddat,$rmtmp); |
16 |
< |
my ($tf,$rf,$tb,$rb,$tfx,$rfx,$tbx,$rbx,$tfz,$rfz,$tbz,$rbz,$cph); |
16 |
> |
my ($tf,$rf,$tb,$rb,$tfx,$rfx,$tbx,$rbx,$tfz,$rfz,$tbz,$rbz); |
17 |
|
my ($curphase, $recovery); |
18 |
|
if ($#ARGV == 1 && "$ARGV[0]" =~ /^-rec/) { |
19 |
|
$td = $ARGV[1]; |
57 |
|
$rfz = "$td\\rfz.dat"; |
58 |
|
$tbz = "$td\\tbz.dat"; |
59 |
|
$rbz = "$td\\rbz.dat"; |
60 |
– |
$cph = "$td\\phase.txt"; |
60 |
|
$rmtmp = "rd /S /Q $td"; |
61 |
|
} else { |
62 |
|
$radscn = "$td/device.rad"; |
79 |
|
$rfz = "$td/rfz.dat"; |
80 |
|
$tbz = "$td/tbz.dat"; |
81 |
|
$rbz = "$td/rbz.dat"; |
83 |
– |
$cph = "$td/phase.txt"; |
82 |
|
$rmtmp = "rm -rf $td"; |
83 |
|
} |
84 |
|
my @savedARGV = @ARGV; |
211 |
|
printf MGFSCN "xf -t %.6f %.6f 0\n", -($dim[0]+$dim[1])/2, -($dim[2]+$dim[3])/2; |
212 |
|
close MGFSCN; |
213 |
|
if ( $mgfin ) { |
214 |
+ |
die "+mgf requires input file with +geom\n" if ($#ARGV < 0); |
215 |
|
system qq{mgfilt "#,o,xf,c,cxy,cspec,cmix,m,sides,rd,td,rs,ts,ir,v,p,n,f,fh,sph,cyl,cone,prism,ring,torus" @ARGV >> $mgfscn}; |
216 |
|
} else { |
217 |
|
system "rad2mgf $radscn >> $mgfscn"; |
435 |
|
} |
436 |
|
} |
437 |
|
if ($pctcull >= 0) { |
438 |
< |
my $avg = ( $dorecip && "$typ" =~ /^r[fb]/ ) ? " -a" : ""; |
438 |
> |
my $avg = ( $dorecip && ( $tensortree == 3 || "$typ" =~ /^r[fb]/ ) ) ? " -a" : ""; |
439 |
|
my $pcull = ("$spec" eq "Visible") ? $pctcull : |
440 |
|
(100 - (100-$pctcull)*.25) ; |
441 |
|
if ($windoz) { |