From 839fc789d59fba7eaaff2e4e336be151afa11677 Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Wed, 15 Mar 2023 11:19:01 +0000 Subject: [PATCH] blockMesh: The 'boundary' entry is now optional If not present a single default boundary patch will be created. --- src/mesh/blockMesh/blockMesh/blockMeshTopology.C | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mesh/blockMesh/blockMesh/blockMeshTopology.C b/src/mesh/blockMesh/blockMesh/blockMeshTopology.C index 3b55bff683..0881f43d6a 100644 --- a/src/mesh/blockMesh/blockMesh/blockMeshTopology.C +++ b/src/mesh/blockMesh/blockMesh/blockMeshTopology.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -276,7 +276,7 @@ void Foam::blockMesh::readBoundary // Read like boundary file const PtrList patchesInfo ( - meshDescription.lookup("boundary") + meshDescription.lookupOrDefault("boundary", PtrList()) ); patchNames.setSize(patchesInfo.size()); @@ -574,7 +574,7 @@ Foam::polyMesh* Foam::blockMesh::createTopology defaultPatchError(defaultPatchName, meshDescription); } } - else if (meshDescription.found("boundary")) + else { wordList patchNames; faceListList tmpBlocksPatches;