diff --git a/src/finiteVolume/fvMesh/fvMesh.C b/src/finiteVolume/fvMesh/fvMesh.C index 3342910ab199295d086bd0176dcc742eba697be4..544f66035f7e62a3531362c036a7378b66491e84 100644 --- a/src/finiteVolume/fvMesh/fvMesh.C +++ b/src/finiteVolume/fvMesh/fvMesh.C @@ -331,54 +331,6 @@ Foam::fvMesh::fvMesh(const IOobject& io) } -Foam::fvMesh::fvMesh -( - const IOobject& io, - const Xfer<pointField>& points, - const cellShapeList& shapes, - const faceListList& boundaryFaces, - const wordList& boundaryPatchNames, - const PtrList<dictionary>& boundaryDicts, - const word& defaultBoundaryPatchName, - const word& defaultBoundaryPatchType, - const bool syncPar -) -: - polyMesh - ( - io, - points, - shapes, - boundaryFaces, - boundaryPatchNames, - boundaryDicts, - defaultBoundaryPatchName, - defaultBoundaryPatchType, - syncPar - ), - surfaceInterpolation(*this), - fvSchemes(static_cast<const objectRegistry&>(*this)), - fvSolution(static_cast<const objectRegistry&>(*this)), - data(static_cast<const objectRegistry&>(*this)), - boundary_(*this, boundaryMesh()), - lduPtr_(nullptr), - curTimeIndex_(time().timeIndex()), - VPtr_(nullptr), - V0Ptr_(nullptr), - V00Ptr_(nullptr), - SfPtr_(nullptr), - magSfPtr_(nullptr), - CPtr_(nullptr), - CfPtr_(nullptr), - phiPtr_(nullptr) -{ - if (debug) - { - InfoInFunction << "Constructing fvMesh from cellShapes" << endl; - } -} - - Foam::fvMesh::fvMesh ( const IOobject& io, diff --git a/src/finiteVolume/fvMesh/fvMesh.H b/src/finiteVolume/fvMesh/fvMesh.H index 3625af35f73860626529078437f68823718df54e..94a6f68f21d118ba5c2a1ee744830e0948f90c85 100644 --- a/src/finiteVolume/fvMesh/fvMesh.H +++ b/src/finiteVolume/fvMesh/fvMesh.H @@ -157,10 +157,10 @@ class fvMesh //- Disallow construct as copy - fvMesh(const fvMesh&); + fvMesh(const fvMesh&) = delete; //- Disallow assignment - void operator=(const fvMesh&); + void operator=(const fvMesh&) = delete; public: @@ -180,20 +180,6 @@ public: //- Construct from IOobject explicit fvMesh(const IOobject& io); - //- Construct from cellShapes with boundary. - fvMesh - ( - const IOobject& io, - const Xfer<pointField>& points, - const cellShapeList& shapes, - const faceListList& boundaryFaces, - const wordList& boundaryPatchNames, - const PtrList<dictionary>& boundaryDicts, - const word& defaultBoundaryPatchName, - const word& defaultBoundaryPatchType, - const bool syncPar = true - ); - //- Construct from components without boundary. // Boundary is added using addFvPatches() member function fvMesh