diff --git a/src/mesh/blockMesh/blockDescriptor/blockDescriptor.H b/src/mesh/blockMesh/blockDescriptor/blockDescriptor.H index ed1151acac..110b6ec194 100644 --- a/src/mesh/blockMesh/blockDescriptor/blockDescriptor.H +++ b/src/mesh/blockMesh/blockDescriptor/blockDescriptor.H @@ -6,7 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2011-2017 OpenFOAM Foundation - Copyright (C) 2019 OpenCFD Ltd. + Copyright (C) 2019-2020 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -126,12 +126,17 @@ class blockDescriptor void findCurvedFaces(); +public: + + // Generated Methods + + //- Copy construct + blockDescriptor(const blockDescriptor&) = default; + //- No copy assignment void operator=(const blockDescriptor&) = delete; -public: - // Constructors //- Construct from components. Optional cellSet/zone name. @@ -143,7 +148,7 @@ public: const blockFaceList& faces, const labelVector& density, const UList& expand, - const word& zoneName = "" + const word& zoneName = word::null ); //- Construct from Istream diff --git a/src/mesh/blockMesh/blockDescriptor/blockDescriptorTest.C b/src/mesh/blockMesh/blockDescriptor/blockDescriptorTest.C deleted file mode 100644 index 477e75d54a..0000000000 --- a/src/mesh/blockMesh/blockDescriptor/blockDescriptorTest.C +++ /dev/null @@ -1,24 +0,0 @@ -namespace Foam -{ - inline point faceCorr(const point& p) - { - return p/mag(p); - } -} - - -Foam::label Foam::blockDescriptor::correctFacePoints -( - FixedList, 6>& facePoints -) const -{ - forAll(facePoints, facei) - { - forAll(facePoints[facei], pointi) - { - facePoints[facei][pointi] = faceCorr(facePoints[facei][pointi]); - } - } - - return 6; -}