From 3ab5dec91fd923a4e3a375a12efe67ff1e6b5801 Mon Sep 17 00:00:00 2001 From: Mark Olesen Date: Mon, 25 Feb 2019 13:11:33 +0100 Subject: [PATCH] STYLE: consistent polyMesh owner/neighbour note - had different spacing depending if defined from faces or shapes - reinstates commit f7413b27b7c70fa3 from history repository --- .../meshes/polyMesh/polyMeshInitMesh.C | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/src/OpenFOAM/meshes/polyMesh/polyMeshInitMesh.C b/src/OpenFOAM/meshes/polyMesh/polyMeshInitMesh.C index 1da0d14057..1f554071b8 100644 --- a/src/OpenFOAM/meshes/polyMesh/polyMeshInitMesh.C +++ b/src/OpenFOAM/meshes/polyMesh/polyMeshInitMesh.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd. + \\ / A nd | Copyright (C) 2004-2011, 2019 OpenCFD Ltd. \\/ M anipulation | ------------------------------------------------------------------------------- | Copyright (C) 2011-2016 OpenFOAM Foundation @@ -95,11 +95,13 @@ void Foam::polyMesh::initMesh() nCells ); - string meshInfo = + const string meshInfo + ( "nPoints:" + Foam::name(nPoints()) + " nCells:" + Foam::name(this->nCells()) + " nFaces:" + Foam::name(nFaces()) - + " nInternalFaces:" + Foam::name(nInternalFaces()); + + " nInternalFaces:" + Foam::name(nInternalFaces()) + ); owner_.note() = meshInfo; neighbour_.note() = meshInfo; @@ -165,11 +167,13 @@ void Foam::polyMesh::initMesh(cellList& c) c ); - string meshInfo = - "nPoints: " + Foam::name(nPoints()) - + " nCells: " + Foam::name(nCells()) - + " nFaces: " + Foam::name(nFaces()) - + " nInternalFaces: " + Foam::name(this->nInternalFaces()); + const string meshInfo + ( + "nPoints:" + Foam::name(nPoints()) + + " nCells:" + Foam::name(nCells()) + + " nFaces:" + Foam::name(nFaces()) + + " nInternalFaces:" + Foam::name(this->nInternalFaces()) + ); owner_.note() = meshInfo; neighbour_.note() = meshInfo;