mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +00:00
Vector: Add constructor from Foam::zero
This commit is contained in:
@ -81,6 +81,9 @@ public:
|
||||
//- Construct null
|
||||
inline Vector();
|
||||
|
||||
//- Construct initialized to zero
|
||||
inline explicit Vector(const Foam::zero);
|
||||
|
||||
//- Construct given VectorSpace of the same rank
|
||||
template<class Cmpt2>
|
||||
inline Vector(const VectorSpace<Vector<Cmpt2>, Cmpt2, 3>&);
|
||||
|
||||
@ -30,6 +30,13 @@ inline Foam::Vector<Cmpt>::Vector()
|
||||
{}
|
||||
|
||||
|
||||
template<class Cmpt>
|
||||
inline Foam::Vector<Cmpt>::Vector(const Foam::zero z)
|
||||
:
|
||||
Vector::vsType(z)
|
||||
{}
|
||||
|
||||
|
||||
template<class Cmpt>
|
||||
template<class Cmpt2>
|
||||
inline Foam::Vector<Cmpt>::Vector
|
||||
|
||||
Reference in New Issue
Block a user