From 08870e45600af9af02dbefbebf616a22ac8d4fd9 Mon Sep 17 00:00:00 2001 From: Will Bainbridge Date: Tue, 16 Apr 2024 08:28:13 +0100 Subject: [PATCH] PhysicalPropertiesThermo, mirrorMesh, renumberMesh: Clang compilation fixes --- .../mesh/manipulation/mirrorMesh/mirrorMesh.C | 36 +++++++++---------- .../manipulation/renumberMesh/renumberMesh.C | 2 +- .../basic/PhysicalPropertiesThermo.C | 3 +- 3 files changed, 21 insertions(+), 20 deletions(-) diff --git a/applications/utilities/mesh/manipulation/mirrorMesh/mirrorMesh.C b/applications/utilities/mesh/manipulation/mirrorMesh/mirrorMesh.C index 9ad8293c91..6af9325a12 100644 --- a/applications/utilities/mesh/manipulation/mirrorMesh/mirrorMesh.C +++ b/applications/utilities/mesh/manipulation/mirrorMesh/mirrorMesh.C @@ -100,24 +100,24 @@ int main(int argc, char *argv[]) polyTopoChangeMap map ( mesh, - mesh.nPoints(), // nOldPoints, - mesh.nFaces(), // nOldFaces, - mesh.nCells(), // nOldCells, - move(mesh.pointMap()), // pointMap, - move(List(0)), // pointsFromPoints, - move(labelList(0)), // faceMap, - move(List(0)), // facesFromFaces, - move(mesh.cellMap()), // cellMap, - move(List(0)), // cellsFromCells, - move(labelList(0)), // reversePointMap, - move(labelList(0)), // reverseFaceMap, - move(labelList(0)), // reverseCellMap, - move(labelHashSet(0)), // flipFaceFlux, - move(labelListList(0)), // patchPointMap, - move(labelList(0)), // oldPatchSizes, - move(labelList(0)), // oldPatchStarts, - move(labelList(0)), // oldPatchNMeshPoints, - move(autoPtr()) // oldCellVolumesPtr + mesh.nPoints(), // nOldPoints, + mesh.nFaces(), // nOldFaces, + mesh.nCells(), // nOldCells, + move(mesh.pointMap()), // pointMap, + List(0), // pointsFromPoints, + labelList(0), // faceMap, + List(0), // facesFromFaces, + move(mesh.cellMap()), // cellMap, + List(0), // cellsFromCells, + labelList(0), // reversePointMap, + labelList(0), // reverseFaceMap, + labelList(0), // reverseCellMap, + labelHashSet(0), // flipFaceFlux, + labelListList(0), // patchPointMap, + labelList(0), // oldPatchSizes, + labelList(0), // oldPatchStarts, + labelList(0), // oldPatchNMeshPoints, + autoPtr() // oldCellVolumesPtr ); refData.topoChange(map); refData.write(); diff --git a/applications/utilities/mesh/manipulation/renumberMesh/renumberMesh.C b/applications/utilities/mesh/manipulation/renumberMesh/renumberMesh.C index 066b4b2c2f..2fefc2b5e8 100644 --- a/applications/utilities/mesh/manipulation/renumberMesh/renumberMesh.C +++ b/applications/utilities/mesh/manipulation/renumberMesh/renumberMesh.C @@ -471,7 +471,7 @@ autoPtr reorderMesh move(patchSizes), // oldPatchSizes move(patchStarts), // oldPatchStarts, move(oldPatchNMeshPoints), // oldPatchNMeshPoints - move(autoPtr()) // oldCellVolumes + autoPtr() // oldCellVolumes ) ); } diff --git a/src/thermophysicalModels/basic/PhysicalPropertiesThermo.C b/src/thermophysicalModels/basic/PhysicalPropertiesThermo.C index b0a9ffba7f..ea0289d70f 100644 --- a/src/thermophysicalModels/basic/PhysicalPropertiesThermo.C +++ b/src/thermophysicalModels/basic/PhysicalPropertiesThermo.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2023 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2023-2024 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -24,6 +24,7 @@ License \*---------------------------------------------------------------------------*/ #include "PhysicalPropertiesThermo.H" +#include "fvMesh.H" // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //