diff --git a/src/OpenFOAM/primitives/functions/Polynomial/Polynomial.C b/src/OpenFOAM/primitives/functions/Polynomial/Polynomial.C index b842493eef..8f3381ea45 100644 --- a/src/OpenFOAM/primitives/functions/Polynomial/Polynomial.C +++ b/src/OpenFOAM/primitives/functions/Polynomial/Polynomial.C @@ -69,16 +69,6 @@ Foam::Polynomial::Polynomial(const word& name, Istream& is) } -template -Foam::Polynomial::Polynomial(const Polynomial& poly) -: - VectorSpace, scalar, PolySize>(poly), - name_(poly.name_), - logActive_(poly.logActive_), - logCoeff_(poly.logCoeff_) -{} - - template Foam::Polynomial::Polynomial ( @@ -93,13 +83,6 @@ Foam::Polynomial::Polynomial {} -// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // - -template -Foam::Polynomial::~Polynomial() -{} - - // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // template @@ -210,16 +193,4 @@ Foam::Polynomial::integrateMinus1(const scalar intConstant) } -// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * // - -template -void Foam::Polynomial::operator=(const Polynomial& poly) -{ - name_ = poly.name_; - VectorSpace, scalar, PolySize>::operator=(poly); - logActive_ = poly.logActive_; - logCoeff_ = poly.logCoeff_; -} - - // ************************************************************************* // diff --git a/src/OpenFOAM/primitives/functions/Polynomial/Polynomial.H b/src/OpenFOAM/primitives/functions/Polynomial/Polynomial.H index 89ecb9c184..85d41fa880 100644 --- a/src/OpenFOAM/primitives/functions/Polynomial/Polynomial.H +++ b/src/OpenFOAM/primitives/functions/Polynomial/Polynomial.H @@ -52,7 +52,6 @@ SourceFiles #include "scalar.H" #include "Ostream.H" #include "VectorSpace.H" -#include "Vector.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // @@ -81,8 +80,6 @@ class Polynomial : public VectorSpace, scalar, PolySize> { -private: - // Private data //- Polynomial name @@ -101,9 +98,6 @@ public: typedef Polynomial intPolyType; - //- Run-time type information - TypeName("Polynomial") - // Constructors @@ -113,17 +107,10 @@ public: //- Construct from name and Istream Polynomial(const word& name, Istream& is); - //- Copy constructor - Polynomial(const Polynomial& poly); - //- Copy constructor with name Polynomial(const word& name, const Polynomial& poly); - //- Destructor - ~Polynomial(); - - // Member Functions // Access @@ -155,11 +142,6 @@ public: scalar integrateLimits(const scalar x1, const scalar x2) const; - // Member operators - - void operator=(const Polynomial& poly); - - //- Ostream Operator friend Ostream& operator<< ( diff --git a/src/meshTools/directMapped/directMappedPolyPatch/directMappedPatchBase.H b/src/meshTools/directMapped/directMappedPolyPatch/directMappedPatchBase.H index 1a476f66a9..a3d936757e 100644 --- a/src/meshTools/directMapped/directMappedPolyPatch/directMappedPatchBase.H +++ b/src/meshTools/directMapped/directMappedPolyPatch/directMappedPatchBase.H @@ -105,6 +105,7 @@ private: // - schedule mutable autoPtr mapPtr_; + // Private Member Functions //- Collect single list of samples and originating processor+face. @@ -162,7 +163,7 @@ private: public: //- Runtime type information - ClassName("directMappedPatchBase"); + TypeName("directMappedPatchBase"); // Constructors @@ -177,15 +178,14 @@ public: directMappedPatchBase(const polyPatch&, const directMappedPatchBase&); - // Destructor - - ~directMappedPatchBase(); - - void clearOut(); + //- Destructor + virtual ~directMappedPatchBase(); // Member functions + void clearOut(); + //- What to sample const sampleMode& mode() const { diff --git a/src/meshTools/directMapped/directMappedPolyPatch/directMappedPolyPatch.H b/src/meshTools/directMapped/directMappedPolyPatch/directMappedPolyPatch.H index 522564b337..fdd4baec85 100644 --- a/src/meshTools/directMapped/directMappedPolyPatch/directMappedPolyPatch.H +++ b/src/meshTools/directMapped/directMappedPolyPatch/directMappedPolyPatch.H @@ -151,9 +151,8 @@ public: } - // Destructor - - ~directMappedPolyPatch(); + //- Destructor + virtual ~directMappedPolyPatch(); // Member functions diff --git a/src/meshTools/directMapped/directMappedPolyPatch/directMappedWallPolyPatch.H b/src/meshTools/directMapped/directMappedPolyPatch/directMappedWallPolyPatch.H index 407d62ddda..457552e421 100644 --- a/src/meshTools/directMapped/directMappedPolyPatch/directMappedWallPolyPatch.H +++ b/src/meshTools/directMapped/directMappedPolyPatch/directMappedWallPolyPatch.H @@ -158,9 +158,8 @@ public: } - // Destructor - - ~directMappedWallPolyPatch(); + //- Destructor + virtual ~directMappedWallPolyPatch(); // Member functions diff --git a/src/thermophysicalModels/specie/equationOfState/icoPolynomial/icoPolynomial.H b/src/thermophysicalModels/specie/equationOfState/icoPolynomial/icoPolynomial.H index b23de491d1..27190fd833 100644 --- a/src/thermophysicalModels/specie/equationOfState/icoPolynomial/icoPolynomial.H +++ b/src/thermophysicalModels/specie/equationOfState/icoPolynomial/icoPolynomial.H @@ -105,8 +105,6 @@ class icoPolynomial public: - TypeName("icoPolynomial") - // Constructors //- Construct from components