Vector: Add constructor from Foam::zero

This commit is contained in:
Henry Weller
2016-03-10 12:44:25 +00:00
parent f2b111e203
commit f3ca360300
2 changed files with 10 additions and 0 deletions

View File

@ -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>&);

View File

@ -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