diff --git a/src/OpenFOAM/primitives/Tensor2D/Tensor2D.H b/src/OpenFOAM/primitives/Tensor2D/Tensor2D.H index b0c463cc4d..688a9f05c3 100644 --- a/src/OpenFOAM/primitives/Tensor2D/Tensor2D.H +++ b/src/OpenFOAM/primitives/Tensor2D/Tensor2D.H @@ -82,11 +82,13 @@ public: //- Component labeling enumeration enum components { XX, XY, YX, YY }; - - // Constructors + // Generated Methods //- Construct null - inline Tensor2D(); + Tensor2D() = default; + + + // Constructors //- Construct initialized to zero inline Tensor2D(const Foam::zero); diff --git a/src/OpenFOAM/primitives/Tensor2D/Tensor2DI.H b/src/OpenFOAM/primitives/Tensor2D/Tensor2DI.H index 4880f4bd2f..4ad10eece9 100644 --- a/src/OpenFOAM/primitives/Tensor2D/Tensor2DI.H +++ b/src/OpenFOAM/primitives/Tensor2D/Tensor2DI.H @@ -28,15 +28,10 @@ License // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // -template -inline Foam::Tensor2D::Tensor2D() -{} - - template inline Foam::Tensor2D::Tensor2D(const Foam::zero) : - Tensor2D::msType(Zero) + Tensor2D::vsType(Zero) {} @@ -46,7 +41,7 @@ inline Foam::Tensor2D::Tensor2D const VectorSpace, Cmpt, 4>& vs ) : - Tensor2D::msType(vs) + Tensor2D::vsType(vs) {} @@ -61,7 +56,7 @@ inline Foam::Tensor2D::Tensor2D(const SymmTensor2D& st) template inline Foam::Tensor2D::Tensor2D(const SphericalTensor2D& st) : - Tensor2D::msType(Zero) + Tensor2D::vsType(Zero) { this->v_[XX] = st.ii(); this->v_[YY] = st.ii(); @@ -95,7 +90,7 @@ inline Foam::Tensor2D::Tensor2D template inline Foam::Tensor2D::Tensor2D(Istream& is) : - Tensor2D::msType(is) + Tensor2D::vsType(is) {}