Skip to content
Snippets Groups Projects
Commit 77152f3f authored by Henry Weller's avatar Henry Weller
Browse files

polyBoundaryMesh: Remove patchGroups which clash with patch names

This allows freedom in the naming of patches when patchGroup-based
boundary specification is not used.

Patch contributed by Mattijs Janssens
parent a7df7480
Branches
Tags
1 merge request!60Merge foundation
......@@ -443,16 +443,6 @@ Foam::polyBoundaryMesh::groupPatchIDs() const
{
const word& name = groups[i];
if (findPatchID(name) != -1)
{
WarningInFunction
<< "Patch " << bm[patchi].name()
<< " specifies a group " << name
<< " which is also a patch name."
<< " This might give problems later on." << endl;
}
HashTable<labelList, word>::iterator iter = groupPatchIDs.find
(
name
......@@ -468,7 +458,21 @@ Foam::polyBoundaryMesh::groupPatchIDs() const
}
}
}
// Remove patch names from patchGroups
forAll(bm, patchi)
{
if (groupPatchIDs.erase(bm[patchi].name()))
{
WarningInFunction
<< "Removing patchGroup '" << bm[patchi].name()
<< "' which clashes with patch " << patchi
<< " of the same name."
<< endl;
}
}
}
return groupPatchIDsPtr_();
}
......
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