mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
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:
@ -445,14 +445,15 @@ Foam::polyBoundaryMesh::groupPatchIDs() const
|
|||||||
|
|
||||||
if (findPatchID(name) != -1)
|
if (findPatchID(name) != -1)
|
||||||
{
|
{
|
||||||
WarningInFunction
|
FatalErrorInFunction
|
||||||
<< "Patch " << bm[patchi].name()
|
<< "Patch '" << bm[patchi].name() << '\''
|
||||||
<< " specifies a group " << name
|
<< " specifies the group '" << name << '\''
|
||||||
<< " which is also a patch name."
|
<< " which clashes with a patch name." << nl
|
||||||
<< " This might give problems later on." << endl;
|
<< " Please choose patch names"
|
||||||
|
" which are not patch type/group names."
|
||||||
|
<< exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
HashTable<labelList, word>::iterator iter = groupPatchIDs.find
|
HashTable<labelList, word>::iterator iter = groupPatchIDs.find
|
||||||
(
|
(
|
||||||
name
|
name
|
||||||
|
|||||||
Reference in New Issue
Block a user