mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: blockMeshTopology: added error checking on boundary syntax
This commit is contained in:
@ -208,6 +208,13 @@ bool Foam::blockMesh::readBoundary
|
|||||||
{
|
{
|
||||||
const entry& patchInfo = patchesInfo[patchI];
|
const entry& patchInfo = patchesInfo[patchI];
|
||||||
|
|
||||||
|
if (!patchInfo.isDict())
|
||||||
|
{
|
||||||
|
FatalIOErrorIn("blockMesh::readBoundary(..)", meshDescription)
|
||||||
|
<< "Entry " << patchInfo << " in boundary section is not a"
|
||||||
|
<< " valid dictionary." << exit(FatalIOError);
|
||||||
|
}
|
||||||
|
|
||||||
// Construct dictionary and add name
|
// Construct dictionary and add name
|
||||||
patchDicts.set(patchI, new dictionary(patchInfo.dict()));
|
patchDicts.set(patchI, new dictionary(patchInfo.dict()));
|
||||||
patchDicts[patchI].set("name", patchInfo.keyword());
|
patchDicts[patchI].set("name", patchInfo.keyword());
|
||||||
|
|||||||
Reference in New Issue
Block a user