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)
|
||||
{
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user