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

polyBoundaryMesh::groupPatchIDs(): Make name clash between patch and group name fatal

If this clash is allowed boundary conditions set by wildcards are
processed incorrectly.
parent 74e1352c
Branches
Tags
No related merge requests found
......@@ -445,14 +445,15 @@ Foam::polyBoundaryMesh::groupPatchIDs() const
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;
FatalErrorInFunction
<< "Patch '" << bm[patchi].name() << '\''
<< " specifies the group '" << name << '\''
<< " which clashes with a patch name." << nl
<< " Please choose patch names"
" which are not patch type/group names."
<< exit(FatalError);
}
HashTable<labelList, word>::iterator iter = groupPatchIDs.find
(
name
......
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