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;