diff --git a/applications/solvers/combustion/PDRFoam/laminarFlameSpeed/SCOPE/SCOPELaminarFlameSpeed.H b/applications/solvers/combustion/PDRFoam/laminarFlameSpeed/SCOPE/SCOPELaminarFlameSpeed.H index dad0347552..c931748b3f 100644 --- a/applications/solvers/combustion/PDRFoam/laminarFlameSpeed/SCOPE/SCOPELaminarFlameSpeed.H +++ b/applications/solvers/combustion/PDRFoam/laminarFlameSpeed/SCOPE/SCOPELaminarFlameSpeed.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -173,11 +173,6 @@ class SCOPE // evaluated from the given equivalence ratio tmp Ma(const volScalarField& phi) const; - //- Construct as copy (not implemented) - SCOPE(const SCOPE&); - - void operator=(const SCOPE&); - public: @@ -193,6 +188,9 @@ public: const psiuReactionThermo& ); + //- Disallow default bitwise copy construction + SCOPE(const SCOPE&) = delete; + //- Destructor ~SCOPE(); @@ -203,8 +201,14 @@ public: //- Return the Markstein number tmp Ma() const; + + // Member Operators + //- Return the laminar flame speed [m/s] tmp operator()() const; + + //- Disallow default bitwise assignment + void operator=(const SCOPE&) = delete; }; diff --git a/src/mesh/blockMesh/blockMesh/blockMesh.H b/src/mesh/blockMesh/blockMesh/blockMesh.H index f5a400d000..2cfbdaab36 100644 --- a/src/mesh/blockMesh/blockMesh/blockMesh.H +++ b/src/mesh/blockMesh/blockMesh/blockMesh.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -191,9 +191,6 @@ class blockMesh void createCells() const; void createPatches() const; - //- As copy (not implemented) - blockMesh(const blockMesh&); - public: @@ -213,6 +210,9 @@ public: //- Construct from IOdictionary blockMesh(const IOdictionary&, const word& regionName); + //- Disallow default bitwise copy construction + blockMesh(const blockMesh&) = delete; + //- Destructor ~blockMesh(); @@ -286,6 +286,12 @@ public: //- Writes edges of blockMesh in OBJ format. void writeTopology(Ostream&) const; + + + // Member Operators + + //- Disallow default bitwise assignment + void operator=(const blockMesh&) = delete; }; diff --git a/src/thermophysicalModels/basic/basicThermo/basicThermo.H b/src/thermophysicalModels/basic/basicThermo/basicThermo.H index 8e3aa8c30c..42ebe9155e 100644 --- a/src/thermophysicalModels/basic/basicThermo/basicThermo.H +++ b/src/thermophysicalModels/basic/basicThermo/basicThermo.H @@ -78,9 +78,6 @@ protected: // Protected Member Functions - //- Construct as copy (not implemented) - basicThermo(const basicThermo&); - volScalarField& lookupOrConstruct ( const fvMesh& mesh, @@ -130,6 +127,9 @@ public: const word& phaseName ); + //- Disallow default bitwise copy construction + basicThermo(const basicThermo&) = delete; + // Selectors @@ -457,6 +457,12 @@ public: //- Read thermophysical properties dictionary virtual bool read(); + + + // Member Operators + + //- Disallow default bitwise assignment + void operator=(const basicThermo&) = delete; }; diff --git a/src/thermophysicalModels/basic/mixtures/pureMixture/pureMixture.H b/src/thermophysicalModels/basic/mixtures/pureMixture/pureMixture.H index a0989eda96..f0e984bf59 100644 --- a/src/thermophysicalModels/basic/mixtures/pureMixture/pureMixture.H +++ b/src/thermophysicalModels/basic/mixtures/pureMixture/pureMixture.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -55,9 +55,6 @@ class pureMixture ThermoType mixture_; - //- Construct as copy (not implemented) - pureMixture(const pureMixture&); - public: @@ -70,6 +67,9 @@ public: //- Construct from dictionary, mesh and phase name pureMixture(const dictionary&, const fvMesh&, const word&); + //- Disallow default bitwise copy construction + pureMixture(const pureMixture&) = delete; + // Member Functions @@ -121,6 +121,12 @@ public: //- Read dictionary void read(const dictionary&); + + + // Member Operators + + //- Disallow default bitwise assignment + void operator=(const pureMixture&) = delete; }; diff --git a/src/thermophysicalModels/basic/psiThermo/hePsiThermo.H b/src/thermophysicalModels/basic/psiThermo/hePsiThermo.H index 0d8f99e1b2..28aa1f1e53 100644 --- a/src/thermophysicalModels/basic/psiThermo/hePsiThermo.H +++ b/src/thermophysicalModels/basic/psiThermo/hePsiThermo.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -57,9 +57,6 @@ class hePsiThermo //- Calculate the thermo variables void calculate(); - //- Construct as copy (not implemented) - hePsiThermo(const hePsiThermo&); - public: //- Runtime type information @@ -75,6 +72,9 @@ public: const word& phaseName ); + //- Disallow default bitwise copy construction + hePsiThermo(const hePsiThermo&) = delete; + //- Destructor virtual ~hePsiThermo(); @@ -84,6 +84,15 @@ public: //- Update properties virtual void correct(); + + + // Member Operators + + //- Disallow default bitwise assignment + void operator= + ( + const hePsiThermo& + ) = delete; }; diff --git a/src/thermophysicalModels/basic/psiThermo/psiThermo.H b/src/thermophysicalModels/basic/psiThermo/psiThermo.H index 24bf12f3c2..f1bbdea3f5 100644 --- a/src/thermophysicalModels/basic/psiThermo/psiThermo.H +++ b/src/thermophysicalModels/basic/psiThermo/psiThermo.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -63,12 +63,6 @@ protected: volScalarField mu_; - // Protected Member Functions - - //- Construct as copy (not implemented) - psiThermo(const psiThermo&); - - public: //- Runtime type information @@ -95,6 +89,9 @@ public: const word& phaseName ); + //- Disallow default bitwise copy construction + psiThermo(const psiThermo&) = delete; + //- Selector static autoPtr New @@ -134,6 +131,12 @@ public: //- Dynamic viscosity of mixture for patch [kg/m/s] virtual tmp mu(const label patchi) const; + + + // Member Operators + + //- Disallow default bitwise assignment + void operator=(const psiThermo&) = delete; }; diff --git a/src/thermophysicalModels/basic/rhoThermo/heRhoThermo.H b/src/thermophysicalModels/basic/rhoThermo/heRhoThermo.H index 533bc261a6..31369a4575 100644 --- a/src/thermophysicalModels/basic/rhoThermo/heRhoThermo.H +++ b/src/thermophysicalModels/basic/rhoThermo/heRhoThermo.H @@ -57,9 +57,6 @@ class heRhoThermo //- Calculate the thermo variables void calculate(); - //- Construct as copy (not implemented) - heRhoThermo(const heRhoThermo&); - public: @@ -76,6 +73,9 @@ public: const word& phaseName ); + //- Disallow default bitwise copy construction + heRhoThermo(const heRhoThermo&) = delete; + //- Destructor virtual ~heRhoThermo(); @@ -85,6 +85,15 @@ public: //- Update properties virtual void correct(); + + + // Member Operators + + //- Disallow default bitwise assignment + void operator= + ( + const heRhoThermo& + ) = delete; }; diff --git a/src/thermophysicalModels/basic/rhoThermo/rhoThermo.H b/src/thermophysicalModels/basic/rhoThermo/rhoThermo.H index d245cc5366..8b5406930c 100644 --- a/src/thermophysicalModels/basic/rhoThermo/rhoThermo.H +++ b/src/thermophysicalModels/basic/rhoThermo/rhoThermo.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -67,12 +67,6 @@ protected: volScalarField mu_; - // Protected Member Functions - - //- Construct as copy (not implemented) - rhoThermo(const rhoThermo&); - - public: //- Runtime type information @@ -107,6 +101,9 @@ public: const word& phaseName ); + //- Disallow default bitwise copy construction + rhoThermo(const rhoThermo&); + //- Selector static autoPtr New @@ -148,6 +145,12 @@ public: //- Dynamic viscosity of mixture for patch [kg/m/s] virtual tmp mu(const label patchi) const; + + + // Member Operators + + //- Disallow default bitwise assignment + void operator=(const rhoThermo&) = delete; }; diff --git a/src/thermophysicalModels/chemistryModel/chemistryModel/basicChemistryModel/basicChemistryModel.H b/src/thermophysicalModels/chemistryModel/chemistryModel/basicChemistryModel/basicChemistryModel.H index 655b33b1e2..9fc4ce522f 100644 --- a/src/thermophysicalModels/chemistryModel/chemistryModel/basicChemistryModel/basicChemistryModel.H +++ b/src/thermophysicalModels/chemistryModel/chemistryModel/basicChemistryModel/basicChemistryModel.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -99,8 +99,8 @@ public: //- Construct from thermo basicChemistryModel(const basicThermo& thermo); - //- Construct as copy (not implemented) - basicChemistryModel(const basicChemistryModel&); + //- Disallow default bitwise copy construction + basicChemistryModel(const basicChemistryModel&) = delete; // Selectors diff --git a/src/thermophysicalModels/laminarFlameSpeed/Gulders/Gulders.H b/src/thermophysicalModels/laminarFlameSpeed/Gulders/Gulders.H index c63d3ec442..7d3a0e66d5 100644 --- a/src/thermophysicalModels/laminarFlameSpeed/Gulders/Gulders.H +++ b/src/thermophysicalModels/laminarFlameSpeed/Gulders/Gulders.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -93,17 +93,13 @@ class Gulders const volScalarField& phi ) const; - //- Construct as copy (not implemented) - Gulders(const Gulders&); - - void operator=(const Gulders&); - public: //- Runtime type information TypeName("Gulders"); + // Constructors //- Construct from dictionary and psiuReactionThermo @@ -113,15 +109,21 @@ public: const psiuReactionThermo& ); + //- Disallow default bitwise copy construction + Gulders(const Gulders&) = delete; + //- Destructor virtual ~Gulders(); - // Member Functions + // Member Operators //- Return the laminar flame speed [m/s] tmp operator()() const; + + //- Disallow default bitwise assignment + void operator=(const Gulders&) = delete; }; diff --git a/src/thermophysicalModels/laminarFlameSpeed/GuldersEGR/GuldersEGR.H b/src/thermophysicalModels/laminarFlameSpeed/GuldersEGR/GuldersEGR.H index 12d998a960..87eb9ac2ea 100644 --- a/src/thermophysicalModels/laminarFlameSpeed/GuldersEGR/GuldersEGR.H +++ b/src/thermophysicalModels/laminarFlameSpeed/GuldersEGR/GuldersEGR.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -94,17 +94,13 @@ class GuldersEGR const volScalarField& egr ) const; - //- Construct as copy (not implemented) - GuldersEGR(const GuldersEGR&); - - void operator=(const GuldersEGR&); - public: //- Runtime type information TypeName("GuldersEGR"); + // Constructors //- Construct from dictionary and psiuReactionThermo @@ -114,15 +110,21 @@ public: const psiuReactionThermo& ); + //- Disallow default bitwise copy construction + GuldersEGR(const GuldersEGR&) = delete; + //- Destructor virtual ~GuldersEGR(); - // Member Functions + // Member Operators //- Return the laminar flame speed [m/s] tmp operator()() const; + + //- Disallow default bitwise assignment + void operator=(const GuldersEGR&) = delete; }; diff --git a/src/thermophysicalModels/laminarFlameSpeed/RaviPetersen/RaviPetersen.H b/src/thermophysicalModels/laminarFlameSpeed/RaviPetersen/RaviPetersen.H index 7f162826d6..8c27b7dbba 100644 --- a/src/thermophysicalModels/laminarFlameSpeed/RaviPetersen/RaviPetersen.H +++ b/src/thermophysicalModels/laminarFlameSpeed/RaviPetersen/RaviPetersen.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2013-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2013-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -160,16 +160,12 @@ class RaviPetersen ) const; - //- Construct as copy (not implemented) - RaviPetersen(const RaviPetersen&); - void operator=(const RaviPetersen&); - - public: //- Runtime type information TypeName("RaviPetersen"); + // Constructors //- Construct from dictionary and psiuReactionThermo @@ -179,15 +175,21 @@ public: const psiuReactionThermo& ); + //- Disallow default bitwise copy construction + RaviPetersen(const RaviPetersen&) = delete; + //- Destructor virtual ~RaviPetersen(); - // Member Functions + // Member Operators //- Return the laminar flame speed [m/s] tmp operator()() const; + + //- Disallow default bitwise assignment + void operator=(const RaviPetersen&) = delete; }; diff --git a/src/thermophysicalModels/laminarFlameSpeed/constant/constant.H b/src/thermophysicalModels/laminarFlameSpeed/constant/constant.H index c80d72e70e..e9b700cbd8 100644 --- a/src/thermophysicalModels/laminarFlameSpeed/constant/constant.H +++ b/src/thermophysicalModels/laminarFlameSpeed/constant/constant.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -52,18 +52,11 @@ class constant : public laminarFlameSpeed { - // Const laminar flame speed + // Private Data dimensionedScalar Su_; - // Private Member Functions - - //- Construct as copy (not implemented) - constant(const constant&); - void operator=(const constant&); - - public: //- Runtime type information @@ -79,15 +72,21 @@ public: const psiuReactionThermo& ); + //- Disallow default bitwise copy construction + constant(const constant&) = delete; + //- Destructor virtual ~constant(); - // Member Functions + // Member Operators //- Return the laminar flame speed [m/s] tmp operator()() const; + + //- Disallow default bitwise assignment + void operator=(const constant&) = delete; }; diff --git a/src/thermophysicalModels/laminarFlameSpeed/laminarFlameSpeed/laminarFlameSpeed.H b/src/thermophysicalModels/laminarFlameSpeed/laminarFlameSpeed/laminarFlameSpeed.H index 1a3dc1d14e..21f0c90042 100644 --- a/src/thermophysicalModels/laminarFlameSpeed/laminarFlameSpeed/laminarFlameSpeed.H +++ b/src/thermophysicalModels/laminarFlameSpeed/laminarFlameSpeed/laminarFlameSpeed.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -58,7 +58,6 @@ namespace Foam class laminarFlameSpeed { - protected: // Protected data @@ -72,15 +71,6 @@ protected: scalar equivalenceRatio_; -private: - - // Private Member Functions - - //- Construct as copy (not implemented) - laminarFlameSpeed(const laminarFlameSpeed&); - void operator=(const laminarFlameSpeed&); - - public: //- Runtime type information @@ -111,6 +101,9 @@ public: const psiuReactionThermo& ); + //- Disallow default bitwise copy construction + laminarFlameSpeed(const laminarFlameSpeed&) = delete; + // Selector @@ -124,10 +117,13 @@ public: virtual ~laminarFlameSpeed(); - // Member Functions + // Member Operators //- Return the laminar flame speed [m/s] virtual tmp operator()() const = 0; + + //- Disallow default bitwise assignment + void operator=(const laminarFlameSpeed&) = delete; }; diff --git a/src/thermophysicalModels/reactionThermo/mixtures/egrMixture/egrMixture.H b/src/thermophysicalModels/reactionThermo/mixtures/egrMixture/egrMixture.H index 2ea3242903..04d8684edd 100644 --- a/src/thermophysicalModels/reactionThermo/mixtures/egrMixture/egrMixture.H +++ b/src/thermophysicalModels/reactionThermo/mixtures/egrMixture/egrMixture.H @@ -73,9 +73,6 @@ class egrMixture //- Residual gases volScalarField& egr_; - //- Construct as copy (not implemented) - egrMixture(const egrMixture&); - public: @@ -88,6 +85,9 @@ public: //- Construct from dictionary, mesh and phaseName egrMixture(const dictionary&, const fvMesh&, const word&); + //- Disallow default bitwise copy construction + egrMixture(const egrMixture&) = delete; + //- Destructor virtual ~egrMixture() @@ -176,6 +176,12 @@ public: //- Return thermo based on index const ThermoType& specieThermo(const label speciei) const; + + + // Member Operators + + //- Disallow default bitwise assignment + void operator=(const egrMixture&) = delete; }; diff --git a/src/thermophysicalModels/reactionThermo/mixtures/homogeneousMixture/homogeneousMixture.H b/src/thermophysicalModels/reactionThermo/mixtures/homogeneousMixture/homogeneousMixture.H index 84b9b516f3..67c2ac35cc 100644 --- a/src/thermophysicalModels/reactionThermo/mixtures/homogeneousMixture/homogeneousMixture.H +++ b/src/thermophysicalModels/reactionThermo/mixtures/homogeneousMixture/homogeneousMixture.H @@ -61,9 +61,6 @@ class homogeneousMixture mutable ThermoType mixture_; - //- Construct as copy (not implemented) - homogeneousMixture(const homogeneousMixture&); - //- Regress variable volScalarField& b_; @@ -79,6 +76,9 @@ public: //- Construct from dictionary, mesh and phase name homogeneousMixture(const dictionary&, const fvMesh&, const word&); + //- Disallow default bitwise copy construction + homogeneousMixture(const homogeneousMixture&) = delete; + //- Destructor virtual ~homogeneousMixture() @@ -134,6 +134,12 @@ public: //- Return thermo based on index const ThermoType& specieThermo(const label speciei) const; + + + // Member Operators + + //- Disallow default bitwise assignment + void operator=(const homogeneousMixture&) = delete; }; diff --git a/src/thermophysicalModels/reactionThermo/mixtures/inhomogeneousMixture/inhomogeneousMixture.H b/src/thermophysicalModels/reactionThermo/mixtures/inhomogeneousMixture/inhomogeneousMixture.H index 2e5478ba03..43966810ef 100644 --- a/src/thermophysicalModels/reactionThermo/mixtures/inhomogeneousMixture/inhomogeneousMixture.H +++ b/src/thermophysicalModels/reactionThermo/mixtures/inhomogeneousMixture/inhomogeneousMixture.H @@ -70,9 +70,6 @@ class inhomogeneousMixture //- Regress variable volScalarField& b_; - //- Construct as copy (not implemented) - inhomogeneousMixture(const inhomogeneousMixture&); - public: @@ -85,6 +82,9 @@ public: //- Construct from dictionary, mesh and phase name inhomogeneousMixture(const dictionary&, const fvMesh&, const word&); + //- Disallow default bitwise copy construction + inhomogeneousMixture(const inhomogeneousMixture&) = delete; + //- Destructor virtual ~inhomogeneousMixture() @@ -165,6 +165,12 @@ public: //- Return thermo based on index const ThermoType& specieThermo(const label speciei) const; + + + // Member Operators + + //- Disallow default bitwise assignment + void operator=(const inhomogeneousMixture&) = delete; }; diff --git a/src/thermophysicalModels/reactionThermo/mixtures/veryInhomogeneousMixture/veryInhomogeneousMixture.H b/src/thermophysicalModels/reactionThermo/mixtures/veryInhomogeneousMixture/veryInhomogeneousMixture.H index 484e53041f..a023e578ee 100644 --- a/src/thermophysicalModels/reactionThermo/mixtures/veryInhomogeneousMixture/veryInhomogeneousMixture.H +++ b/src/thermophysicalModels/reactionThermo/mixtures/veryInhomogeneousMixture/veryInhomogeneousMixture.H @@ -73,9 +73,6 @@ class veryInhomogeneousMixture //- Regress variable volScalarField& b_; - //- Construct as copy (not implemented) - veryInhomogeneousMixture(const veryInhomogeneousMixture&); - public: @@ -93,6 +90,11 @@ public: const word& ); + //- Disallow default bitwise copy construction + veryInhomogeneousMixture + ( + const veryInhomogeneousMixture& + ) = delete; //- Destructor virtual ~veryInhomogeneousMixture() @@ -171,6 +173,12 @@ public: //- Return thermo based on index const ThermoType& specieThermo(const label speciei) const; + + + // Member Operators + + //- Disallow default bitwise assignment + void operator=(const veryInhomogeneousMixture&) = delete; }; diff --git a/src/thermophysicalModels/solidThermo/heSolidThermo/heSolidThermo.H b/src/thermophysicalModels/solidThermo/heSolidThermo/heSolidThermo.H index 3e2b9ef0da..92aa0cf01b 100644 --- a/src/thermophysicalModels/solidThermo/heSolidThermo/heSolidThermo.H +++ b/src/thermophysicalModels/solidThermo/heSolidThermo/heSolidThermo.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -56,9 +56,6 @@ class heSolidThermo //- Calculate the thermo variables void calculate(); - //- Construct as copy (not implemented) - heSolidThermo(const heSolidThermo&); - public: @@ -83,6 +80,12 @@ public: const word& phaseName ); + //- Disallow default bitwise copy construction + heSolidThermo + ( + const heSolidThermo& + ) = delete; + //- Destructor virtual ~heSolidThermo(); @@ -110,6 +113,15 @@ public: //- Anisotropic thermal conductivity [W/m/K] virtual tmp Kappa(const label patchi) const; + + + // Member Operators + + //- Disallow default bitwise assignment + void operator= + ( + const heSolidThermo& + ) = delete; };