mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: Tensor2D derives from VectorSpace, not MatrixSpace
This commit is contained in:
@ -82,11 +82,13 @@ public:
|
|||||||
//- Component labeling enumeration
|
//- Component labeling enumeration
|
||||||
enum components { XX, XY, YX, YY };
|
enum components { XX, XY, YX, YY };
|
||||||
|
|
||||||
|
// Generated Methods
|
||||||
// Constructors
|
|
||||||
|
|
||||||
//- Construct null
|
//- Construct null
|
||||||
inline Tensor2D();
|
Tensor2D() = default;
|
||||||
|
|
||||||
|
|
||||||
|
// Constructors
|
||||||
|
|
||||||
//- Construct initialized to zero
|
//- Construct initialized to zero
|
||||||
inline Tensor2D(const Foam::zero);
|
inline Tensor2D(const Foam::zero);
|
||||||
|
|||||||
@ -28,15 +28,10 @@ License
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
template<class Cmpt>
|
|
||||||
inline Foam::Tensor2D<Cmpt>::Tensor2D()
|
|
||||||
{}
|
|
||||||
|
|
||||||
|
|
||||||
template<class Cmpt>
|
template<class Cmpt>
|
||||||
inline Foam::Tensor2D<Cmpt>::Tensor2D(const Foam::zero)
|
inline Foam::Tensor2D<Cmpt>::Tensor2D(const Foam::zero)
|
||||||
:
|
:
|
||||||
Tensor2D::msType(Zero)
|
Tensor2D::vsType(Zero)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
@ -46,7 +41,7 @@ inline Foam::Tensor2D<Cmpt>::Tensor2D
|
|||||||
const VectorSpace<Tensor2D<Cmpt>, Cmpt, 4>& vs
|
const VectorSpace<Tensor2D<Cmpt>, Cmpt, 4>& vs
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
Tensor2D::msType(vs)
|
Tensor2D::vsType(vs)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
@ -61,7 +56,7 @@ inline Foam::Tensor2D<Cmpt>::Tensor2D(const SymmTensor2D<Cmpt>& st)
|
|||||||
template<class Cmpt>
|
template<class Cmpt>
|
||||||
inline Foam::Tensor2D<Cmpt>::Tensor2D(const SphericalTensor2D<Cmpt>& st)
|
inline Foam::Tensor2D<Cmpt>::Tensor2D(const SphericalTensor2D<Cmpt>& st)
|
||||||
:
|
:
|
||||||
Tensor2D::msType(Zero)
|
Tensor2D::vsType(Zero)
|
||||||
{
|
{
|
||||||
this->v_[XX] = st.ii();
|
this->v_[XX] = st.ii();
|
||||||
this->v_[YY] = st.ii();
|
this->v_[YY] = st.ii();
|
||||||
@ -95,7 +90,7 @@ inline Foam::Tensor2D<Cmpt>::Tensor2D
|
|||||||
template<class Cmpt>
|
template<class Cmpt>
|
||||||
inline Foam::Tensor2D<Cmpt>::Tensor2D(Istream& is)
|
inline Foam::Tensor2D<Cmpt>::Tensor2D(Istream& is)
|
||||||
:
|
:
|
||||||
Tensor2D::msType(is)
|
Tensor2D::vsType(is)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user