Added a work around so that we can get past the "triangle" program
hanging, by aborting and rerunning with that tile marked to use the "-i" option.
This commit is contained in:
parent
de8f726b62
commit
1d3e840fef
1 changed files with 19 additions and 1 deletions
|
@ -255,7 +255,20 @@ sub triangle_2 {
|
||||||
print $file;
|
print $file;
|
||||||
chop($file);
|
chop($file);
|
||||||
if ( ($file =~ m/\.node$/) && ($file !~ m/\.\d\.node$/) ) {
|
if ( ($file =~ m/\.node$/) && ($file !~ m/\.\d\.node$/) ) {
|
||||||
$command = "Triangle/triangle $subdir/$file";
|
$base = $file;
|
||||||
|
$base =~ s/\.node$//;
|
||||||
|
print("Test for $subdir/$base.q\n");
|
||||||
|
if ( -r "$subdir/$base.q" ) {
|
||||||
|
|
||||||
|
# if triangle hangs, we can create a filebase.q for
|
||||||
|
# the file it hung on. Then, we test for that file
|
||||||
|
# here which causes the incremental algorithm to run
|
||||||
|
# (which shouldn't ever hang.)
|
||||||
|
|
||||||
|
$command = "Triangle/triangle -i $subdir/$file";
|
||||||
|
} else {
|
||||||
|
$command = "Triangle/triangle $subdir/$file";
|
||||||
|
}
|
||||||
$command = fix_command($command);
|
$command = fix_command($command);
|
||||||
print "Running '$command'\n";
|
print "Running '$command'\n";
|
||||||
open(OUT, "$command |");
|
open(OUT, "$command |");
|
||||||
|
@ -375,6 +388,11 @@ sub fixobj {
|
||||||
|
|
||||||
#---------------------------------------------------------------------------
|
#---------------------------------------------------------------------------
|
||||||
# $Log$
|
# $Log$
|
||||||
|
# Revision 1.17 1998/04/28 01:23:25 curt
|
||||||
|
# Added a work around so that we can get past the "triangle" program
|
||||||
|
# hanging, by aborting and rerunning with that tile marked to use the "-i"
|
||||||
|
# option.
|
||||||
|
#
|
||||||
# Revision 1.16 1998/04/18 03:57:53 curt
|
# Revision 1.16 1998/04/18 03:57:53 curt
|
||||||
# Added zlib library support.
|
# Added zlib library support.
|
||||||
#
|
#
|
||||||
|
|
Loading…
Add table
Reference in a new issue