diff --git a/applications/utilities/mesh/generation/extrude/extrudeMesh/extrudeMesh.C b/applications/utilities/mesh/generation/extrude/extrudeMesh/extrudeMesh.C index f4a01a7f89..14b3ca71eb 100644 --- a/applications/utilities/mesh/generation/extrude/extrudeMesh/extrudeMesh.C +++ b/applications/utilities/mesh/generation/extrude/extrudeMesh/extrudeMesh.C @@ -3,7 +3,7 @@ \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation - \\/ M anipulation | Copyright (C) 2015 OpenCFD Ltd. + \\/ M anipulation | Copyright (C) 2015-2016 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -785,7 +785,7 @@ int main(int argc, char *argv[]) if (flipNormals) { Info<< "Flipping faces." << nl << endl; - faceList& faces = const_cast(fMesh.faces()); + faceList& faces = const_cast(fMesh.surfFaces()); forAll(faces, i) { faces[i] = fMesh[i].reverseFace(); diff --git a/applications/utilities/mesh/generation/extrude2DMesh/extrude2DMesh/patchToPoly2DMesh/patchToPoly2DMesh.C b/applications/utilities/mesh/generation/extrude2DMesh/extrude2DMesh/patchToPoly2DMesh/patchToPoly2DMesh.C index 15bc659154..20ebc34516 100644 --- a/applications/utilities/mesh/generation/extrude2DMesh/extrude2DMesh/patchToPoly2DMesh/patchToPoly2DMesh.C +++ b/applications/utilities/mesh/generation/extrude2DMesh/extrude2DMesh/patchToPoly2DMesh/patchToPoly2DMesh.C @@ -3,7 +3,7 @@ \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation - \\/ M anipulation | + \\/ M anipulation | Copyright (C) 2016 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -172,7 +172,7 @@ void Foam::patchToPoly2DMesh::addPatchFacesToFaces() void Foam::patchToPoly2DMesh::addPatchFacesToOwner() { const label nInternalEdges = patch_.nInternalEdges(); - const faceList& faces = patch_.faces(); + const faceList& faces = patch_.surfFaces(); const label nExternalEdges = patch_.edges().size() - nInternalEdges; const labelList& meshPoints = patch_.meshPoints(); diff --git a/applications/utilities/mesh/generation/foamyMesh/foamyQuadMesh/shortEdgeFilter2D.C b/applications/utilities/mesh/generation/foamyMesh/foamyQuadMesh/shortEdgeFilter2D.C index fc2c048d7d..0e8d4963a5 100644 --- a/applications/utilities/mesh/generation/foamyMesh/foamyQuadMesh/shortEdgeFilter2D.C +++ b/applications/utilities/mesh/generation/foamyMesh/foamyQuadMesh/shortEdgeFilter2D.C @@ -232,7 +232,7 @@ Foam::shortEdgeFilter2D::filter() // These are global indices. const pointField& points = ms_.points(); const edgeList& edges = ms_.edges(); - const faceList& faces = ms_.faces(); + const faceList& faces = ms_.surfFaces(); const labelList& meshPoints = ms_.meshPoints(); const labelList& boundaryPoints = ms_.boundaryPoints(); diff --git a/src/edgeMesh/Make/options b/src/edgeMesh/Make/options index 61439e40e2..d488d6522e 100644 --- a/src/edgeMesh/Make/options +++ b/src/edgeMesh/Make/options @@ -7,5 +7,4 @@ EXE_INC = \ LIB_LIBS = \ -ltriSurface \ -lmeshTools \ - -lfileFormats \ -lsurfMesh diff --git a/src/mesh/snappyHexMesh/Make/options b/src/mesh/snappyHexMesh/Make/options index 88577d6c82..42f1b1d19f 100644 --- a/src/mesh/snappyHexMesh/Make/options +++ b/src/mesh/snappyHexMesh/Make/options @@ -14,7 +14,6 @@ LIB_LIBS = \ -lfiniteVolume \ -llagrangian \ -lmeshTools \ - -lfileFormats \ -ledgeMesh \ -lsurfMesh \ -ltriSurface \ diff --git a/src/meshTools/Make/options b/src/meshTools/Make/options index 1713152e9e..98853e61fb 100644 --- a/src/meshTools/Make/options +++ b/src/meshTools/Make/options @@ -5,5 +5,4 @@ EXE_INC = \ LIB_LIBS = \ -ltriSurface \ - -lsurfMesh \ - -lfileFormats + -lsurfMesh diff --git a/src/randomProcesses/Make/options b/src/randomProcesses/Make/options index e1eddd51d2..4d1c505dae 100644 --- a/src/randomProcesses/Make/options +++ b/src/randomProcesses/Make/options @@ -7,5 +7,4 @@ EXE_INC = \ LIB_LIBS = \ -L$(FFTW_ARCH_PATH)/lib$(WM_COMPILER_LIB_ARCH) -lfftw3 \ -lfiniteVolume \ - -lsampling \ - -lsurfMesh + -lsampling diff --git a/src/randomProcesses/noise/noiseModels/surfaceNoise/surfaceNoise.C b/src/randomProcesses/noise/noiseModels/surfaceNoise/surfaceNoise.C index 2237bdf98e..51e61a5cc6 100644 --- a/src/randomProcesses/noise/noiseModels/surfaceNoise/surfaceNoise.C +++ b/src/randomProcesses/noise/noiseModels/surfaceNoise/surfaceNoise.C @@ -295,7 +295,7 @@ Foam::scalar surfaceNoise::writeSurfaceData outDir, fName, surf.points(), - surf.faces(), + surf.surfFaces(), title, allData, false @@ -318,7 +318,7 @@ Foam::scalar surfaceNoise::writeSurfaceData outDir, fName, surf.points(), - surf.faces(), + surf.surfFaces(), title, data, false diff --git a/src/sampling/Make/options b/src/sampling/Make/options index 0cf5b268b6..00d418481b 100644 --- a/src/sampling/Make/options +++ b/src/sampling/Make/options @@ -13,7 +13,6 @@ LIB_LIBS = \ -lfiniteVolume \ -lmeshTools \ -lsurfMesh \ - -lfileFormats \ -ltriSurface \ -llagrangian \ -ldynamicMesh \ diff --git a/src/sampling/sampledSurface/sampledPatch/sampledPatch.H b/src/sampling/sampledSurface/sampledPatch/sampledPatch.H index e47d7494ba..36cf5829a4 100644 --- a/src/sampling/sampledSurface/sampledPatch/sampledPatch.H +++ b/src/sampling/sampledSurface/sampledPatch/sampledPatch.H @@ -177,7 +177,7 @@ public: //- Faces of surface virtual const faceList& faces() const { - return MeshStorage::faces(); + return MeshStorage::surfFaces(); } //- Face area vectors diff --git a/src/sampling/sampledSurface/sampledPlane/sampledPlane.H b/src/sampling/sampledSurface/sampledPlane/sampledPlane.H index 6269d39d9a..6d82afa526 100644 --- a/src/sampling/sampledSurface/sampledPlane/sampledPlane.H +++ b/src/sampling/sampledSurface/sampledPlane/sampledPlane.H @@ -137,7 +137,7 @@ public: //- Faces of surface virtual const faceList& faces() const { - return cuttingPlane::faces(); + return cuttingPlane::surfFaces(); } //- Face area magnitudes diff --git a/src/sampling/sampledSurface/sampledTriSurfaceMesh/sampledTriSurfaceMesh.C b/src/sampling/sampledSurface/sampledTriSurfaceMesh/sampledTriSurfaceMesh.C index e0f9eb757b..eccbcddd8b 100644 --- a/src/sampling/sampledSurface/sampledTriSurfaceMesh/sampledTriSurfaceMesh.C +++ b/src/sampling/sampledSurface/sampledTriSurfaceMesh/sampledTriSurfaceMesh.C @@ -3,7 +3,7 @@ \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation - \\/ M anipulation | + \\/ M anipulation | Copyright (C) 2016 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. diff --git a/src/sampling/sampledSurface/sampledTriSurfaceMesh/sampledTriSurfaceMesh.H b/src/sampling/sampledSurface/sampledTriSurfaceMesh/sampledTriSurfaceMesh.H index 1d62d0a02a..ef2e9dce1f 100644 --- a/src/sampling/sampledSurface/sampledTriSurfaceMesh/sampledTriSurfaceMesh.H +++ b/src/sampling/sampledSurface/sampledTriSurfaceMesh/sampledTriSurfaceMesh.H @@ -213,7 +213,7 @@ public: //- Faces of surface virtual const faceList& faces() const { - return MeshStorage::faces(); + return MeshStorage::surfFaces(); } //- Face area vectors diff --git a/src/sampling/sampledSurface/thresholdCellFaces/sampledThresholdCellFaces.H b/src/sampling/sampledSurface/thresholdCellFaces/sampledThresholdCellFaces.H index 2fa91d2345..779b20bad1 100644 --- a/src/sampling/sampledSurface/thresholdCellFaces/sampledThresholdCellFaces.H +++ b/src/sampling/sampledSurface/thresholdCellFaces/sampledThresholdCellFaces.H @@ -145,7 +145,7 @@ public: //- Faces of surface virtual const faceList& faces() const { - return MeshStorage::faces(); + return MeshStorage::surfFaces(); } //- Face area vectors (normals) diff --git a/src/surfMesh/MeshedSurface/MeshedSurface.C b/src/surfMesh/MeshedSurface/MeshedSurface.C index e6cd398505..0bc6e4921c 100644 --- a/src/surfMesh/MeshedSurface/MeshedSurface.C +++ b/src/surfMesh/MeshedSurface/MeshedSurface.C @@ -209,7 +209,7 @@ Foam::MeshedSurface::MeshedSurface const MeshedSurface& surf ) : - ParentType(surf.faces(), surf.points()), + ParentType(surf.surfFaces(), surf.points()), zones_(surf.surfZones()) {} @@ -225,7 +225,7 @@ Foam::MeshedSurface::MeshedSurface labelList faceMap; this->storedZones() = surf.sortedZones(faceMap); - const List& origFaces = surf.faces(); + const List& origFaces = surf; List newFaces(origFaces.size()); forAll(newFaces, facei) @@ -1167,7 +1167,7 @@ void Foam::MeshedSurface::operator=(const MeshedSurface& surf) clear(); this->storedPoints() = surf.points(); - this->storedFaces() = surf.faces(); + this->storedFaces() = surf.surfFaces(); this->storedZones() = surf.surfZones(); } @@ -1178,7 +1178,7 @@ Foam::MeshedSurface::operator Foam::MeshedSurfaceProxy() const return MeshedSurfaceProxy ( this->points(), - this->faces(), + this->surfFaces(), this->surfZones() ); } diff --git a/src/surfMesh/MeshedSurface/MeshedSurface.H b/src/surfMesh/MeshedSurface/MeshedSurface.H index 9f3a34a80a..3ff8eb73b4 100644 --- a/src/surfMesh/MeshedSurface/MeshedSurface.H +++ b/src/surfMesh/MeshedSurface/MeshedSurface.H @@ -326,7 +326,7 @@ public: } //- Return const access to the faces - inline const List& faces() const + inline const List& surfFaces() const { return static_cast&>(*this); } diff --git a/src/surfMesh/MeshedSurface/MeshedSurfaceIO.C b/src/surfMesh/MeshedSurface/MeshedSurfaceIO.C index 89204c063b..9d8c5dd091 100644 --- a/src/surfMesh/MeshedSurface/MeshedSurfaceIO.C +++ b/src/surfMesh/MeshedSurface/MeshedSurfaceIO.C @@ -47,7 +47,7 @@ Foam::Ostream& Foam::MeshedSurface::write(Ostream& os) const { os << this->surfZones() << this->points() - << this->faces(); + << this->surfFaces(); os.check("MeshedSurface::write(Ostream&) const"); return os; diff --git a/src/surfMesh/MeshedSurfaceAllocator/MeshedSurfaceIOAllocator.H b/src/surfMesh/MeshedSurfaceAllocator/MeshedSurfaceIOAllocator.H index 0e9d481cb4..190b081ce5 100644 --- a/src/surfMesh/MeshedSurfaceAllocator/MeshedSurfaceIOAllocator.H +++ b/src/surfMesh/MeshedSurfaceAllocator/MeshedSurfaceIOAllocator.H @@ -65,10 +65,10 @@ class MeshedSurfaceIOAllocator // Private Member Functions //- Disallow default bitwise copy construct - MeshedSurfaceIOAllocator(const MeshedSurfaceIOAllocator&); + MeshedSurfaceIOAllocator(const MeshedSurfaceIOAllocator&) = delete; //- Disallow default bitwise assignment - void operator=(const MeshedSurfaceIOAllocator&); + void operator=(const MeshedSurfaceIOAllocator&) = delete; public: diff --git a/src/surfMesh/MeshedSurfaceProxy/MeshedSurfaceProxy.C b/src/surfMesh/MeshedSurfaceProxy/MeshedSurfaceProxy.C index 4b8a754bca..1b1ad73ccf 100644 --- a/src/surfMesh/MeshedSurfaceProxy/MeshedSurfaceProxy.C +++ b/src/surfMesh/MeshedSurfaceProxy/MeshedSurfaceProxy.C @@ -3,7 +3,7 @@ \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation - \\/ M anipulation | + \\/ M anipulation | Copyright (C) 2016 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -171,11 +171,11 @@ void Foam::MeshedSurfaceProxy::write if (this->useFaceMap()) { // this is really a bit annoying (and wasteful) but no other way - os << reorder(this->faceMap(), this->faces()); + os << reorder(this->faceMap(), this->surfFaces()); } else { - os << this->faces(); + os << this->surfFaces(); } io.writeEndDivider(os); diff --git a/src/surfMesh/MeshedSurfaceProxy/MeshedSurfaceProxy.H b/src/surfMesh/MeshedSurfaceProxy/MeshedSurfaceProxy.H index 9338f7dd68..9dc548aba4 100644 --- a/src/surfMesh/MeshedSurfaceProxy/MeshedSurfaceProxy.H +++ b/src/surfMesh/MeshedSurfaceProxy/MeshedSurfaceProxy.H @@ -146,7 +146,7 @@ public: } //- Return const access to the faces - inline const List& faces() const + inline const List& surfFaces() const { return faces_; } diff --git a/src/surfMesh/UnsortedMeshedSurface/UnsortedMeshedSurface.C b/src/surfMesh/UnsortedMeshedSurface/UnsortedMeshedSurface.C index 2848beafc0..d427454e4a 100644 --- a/src/surfMesh/UnsortedMeshedSurface/UnsortedMeshedSurface.C +++ b/src/surfMesh/UnsortedMeshedSurface/UnsortedMeshedSurface.C @@ -202,7 +202,7 @@ Foam::UnsortedMeshedSurface::UnsortedMeshedSurface ParentType ( xferCopy(surf.points()), - xferCopy(surf.faces()) + xferCopy(surf.surfFaces()) ), zoneIds_(surf.zoneIds()), zoneToc_(surf.zoneToc()) @@ -218,7 +218,7 @@ Foam::UnsortedMeshedSurface::UnsortedMeshedSurface ParentType ( xferCopy(surf.points()), - xferCopy(surf.faces()) + xferCopy(surf.surfFaces()) ) { setZones(surf.surfZones()); @@ -456,7 +456,7 @@ Foam::Ostream& Foam::UnsortedMeshedSurface::write(Ostream& os) const { os << this->zoneIds() << this->points() - << this->faces(); + << this->surfFaces(); os.check("UnsortedMeshedSurface::write(Ostream&) const"); return os; @@ -777,7 +777,7 @@ void Foam::UnsortedMeshedSurface::operator= clear(); this->storedPoints() = surf.points(); - this->storedFaces() = surf.faces(); + this->storedFaces() = surf.surfFaces(); zoneIds_ = surf.zoneIds_; zoneToc_ = surf.zoneToc_; } @@ -793,7 +793,7 @@ Foam::MeshedSurfaceProxy() const return MeshedSurfaceProxy ( this->points(), - this->faces(), + this->surfFaces(), zoneLst, faceMap ); diff --git a/src/surfMesh/UnsortedMeshedSurface/UnsortedMeshedSurface.H b/src/surfMesh/UnsortedMeshedSurface/UnsortedMeshedSurface.H index b50460a45d..68a78888d4 100644 --- a/src/surfMesh/UnsortedMeshedSurface/UnsortedMeshedSurface.H +++ b/src/surfMesh/UnsortedMeshedSurface/UnsortedMeshedSurface.H @@ -126,7 +126,7 @@ protected: // Protected Member functions //- Return non-const access to the zone Ids - List