Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
a33fbc12
Commit
a33fbc12
authored
Aug 28, 2009
by
mattijs
Browse files
added error checking
parent
0b51b764
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/meshTools/triSurface/triSurfaceTools/triSurfaceTools.C
View file @
a33fbc12
...
...
@@ -2560,7 +2560,7 @@ Foam::triSurface Foam::triSurfaceTools::delaunay2D(const List<vector2D>& pts)
// Triangulate
int
nTris
=
0
;
dtris2
int
err
=
dtris2
(
pts
.
size
(),
geompackVertices
.
begin
(),
...
...
@@ -2569,6 +2569,13 @@ Foam::triSurface Foam::triSurfaceTools::delaunay2D(const List<vector2D>& pts)
triangle_neighbor
.
begin
()
);
if
(
err
!=
0
)
{
FatalErrorIn
(
"triSurfaceTools::delaunay2D(const List<vector2D>&)"
)
<<
"Failed dtris2 with vertices:"
<<
pts
.
size
()
<<
abort
(
FatalError
);
}
// Trim
triangle_node
.
setSize
(
3
*
nTris
);
triangle_neighbor
.
setSize
(
3
*
nTris
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment