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

If this clash is allowed boundary conditions set by wildcards are
processed incorrectly.
This commit is contained in:
Henry Weller
2016-08-25 16:42:08 +01:00
parent 74e1352cc2
commit f38f0d3e86

View File

@ -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