Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
969af752
Commit
969af752
authored
Sep 10, 2013
by
mattijs
Browse files
ENH: patchToPoly2DMesh: added some checking
parent
a4909c94
Changes
1
Hide whitespace changes
Inline
Side-by-side
applications/utilities/mesh/generation/extrude2DMesh/extrude2DMesh/patchToPoly2DMesh/patchToPoly2DMesh.C
View file @
969af752
...
...
@@ -303,6 +303,33 @@ Foam::patchToPoly2DMesh::~patchToPoly2DMesh()
void
Foam
::
patchToPoly2DMesh
::
createMesh
()
{
for
(
label
edgeI
=
0
;
edgeI
<
patch_
.
nInternalEdges
();
edgeI
++
)
{
if
(
patch_
.
edgeFaces
()[
edgeI
].
size
()
!=
2
)
{
FatalErrorIn
(
"patchToPoly2DMesh::patchToPoly2DMesh(..)"
)
<<
"internal edge:"
<<
edgeI
<<
" patch.edgeFaces()[edgeI]:"
<<
patch_
.
edgeFaces
()[
edgeI
]
<<
abort
(
FatalError
);
}
}
for
(
label
edgeI
=
patch_
.
nInternalEdges
();
edgeI
<
patch_
.
nEdges
();
edgeI
++
)
{
if
(
patch_
.
edgeFaces
()[
edgeI
].
size
()
!=
1
)
{
FatalErrorIn
(
"patchToPoly2DMesh::patchToPoly2DMesh(..)"
)
<<
"boundary edge:"
<<
edgeI
<<
" patch.edgeFaces()[edgeI]:"
<<
patch_
.
edgeFaces
()[
edgeI
]
<<
abort
(
FatalError
);
}
}
createPolyMeshComponents
();
label
startFace
=
patch_
.
nInternalEdges
();
...
...
Write
Preview
Supports
Markdown
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