From e9de9f87d240cc2d33dcca0b15a2de83aa533f94 Mon Sep 17 00:00:00 2001 From: mattijs Date: Mon, 2 Jul 2012 15:30:19 +0100 Subject: [PATCH] STYLE: polyMeshClear: use polyBoundaryMesh functionality --- src/OpenFOAM/meshes/polyMesh/polyMeshClear.C | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/OpenFOAM/meshes/polyMesh/polyMeshClear.C b/src/OpenFOAM/meshes/polyMesh/polyMeshClear.C index 8960e932ab..9a9830545e 100644 --- a/src/OpenFOAM/meshes/polyMesh/polyMeshClear.C +++ b/src/OpenFOAM/meshes/polyMesh/polyMeshClear.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -63,10 +63,7 @@ void Foam::polyMesh::clearGeom() primitiveMesh::clearGeom(); - forAll(boundary_, patchI) - { - boundary_[patchI].clearGeom(); - } + boundary_.clearGeom(); // Reset valid directions (could change with rotation) geometricD_ = Vector