mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
VectorSpaces and MatrixSpaces: Added construction from and assignment to zero
This commit is contained in:
@ -197,6 +197,9 @@ public:
|
||||
|
||||
//- Assign to a triad
|
||||
inline void operator=(const Vector<Vector<Cmpt>>&);
|
||||
|
||||
//- Assignment to zero
|
||||
inline void operator=(const Foam::zero);
|
||||
};
|
||||
|
||||
|
||||
|
||||
@ -33,9 +33,9 @@ inline Foam::Tensor<Cmpt>::Tensor()
|
||||
|
||||
|
||||
template<class Cmpt>
|
||||
inline Foam::Tensor<Cmpt>::Tensor(const Foam::zero z)
|
||||
inline Foam::Tensor<Cmpt>::Tensor(const Foam::zero)
|
||||
:
|
||||
Tensor::msType(z)
|
||||
Tensor::msType(Zero)
|
||||
{}
|
||||
|
||||
|
||||
@ -329,7 +329,7 @@ inline Foam::Tensor<Cmpt> Foam::Tensor<Cmpt>::T() const
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * //
|
||||
|
||||
template<class Cmpt>
|
||||
inline void Foam::Tensor<Cmpt>::operator&=(const Tensor<Cmpt>& t)
|
||||
@ -400,6 +400,13 @@ inline void Foam::Tensor<Cmpt>::operator=(const Vector<Vector<Cmpt>>& tr)
|
||||
}
|
||||
|
||||
|
||||
template<class Cmpt>
|
||||
inline void Foam::Tensor<Cmpt>::operator=(const Foam::zero)
|
||||
{
|
||||
Tensor::msType::operator=(Zero);
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
namespace Foam
|
||||
|
||||
Reference in New Issue
Block a user