mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: blockTopology.C : nice warning message if preservePatchTypes
This commit is contained in:
@ -504,7 +504,22 @@ Foam::polyMesh* Foam::blockMesh::createTopology
|
||||
dictionary& dict = patchDicts[patchI];
|
||||
|
||||
// Add but not override type
|
||||
dict.add("type", patchTypes[patchI], false);
|
||||
if (!dict.found("type"))
|
||||
{
|
||||
dict.add("type", patchTypes[patchI], false);
|
||||
}
|
||||
else if (word(dict.lookup("type")) != patchTypes[patchI])
|
||||
{
|
||||
IOWarningIn
|
||||
(
|
||||
"blockMesh::createTopology(IOdictionary&)",
|
||||
meshDescription
|
||||
) << "For patch " << patchNames[patchI]
|
||||
<< " overriding type '" << patchTypes[patchI]
|
||||
<< "' with '" << word(dict.lookup("type"))
|
||||
<< "' (read from boundary file)"
|
||||
<< endl;
|
||||
}
|
||||
|
||||
// Override neighbourpatch name
|
||||
if (nbrPatchNames[patchI] != word::null)
|
||||
|
||||
Reference in New Issue
Block a user