Commit 919c4868 authored by Henry Weller's avatar Henry Weller
Browse files

blockMesh: Added check for duplicate curved-edge definitions

parent 3773db53
......@@ -33,9 +33,25 @@ void Foam::blockMesh::check(const polyMesh& bm) const
bool ok = true;
// Check curved-edge/block-edge correspondence
const edgeList& edges = bm.edges();
// Check for duplicate curved edge definitions
forAll(edges_, cei)
{
for (label cej=cei+1; cej<edges_.size(); cej++)
{
if (edges_[cei].compare(edges_[cej]) != 0)
{
Info<< " Curved edge " << edges_[cej]
<< " is a duplicate of curved edge " << edges_[cei]
<< endl;
ok = false;
break;
}
}
}
// Check curved-edge/block-edge correspondence
forAll(edges_, cei)
{
bool found = false;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment