Skip to content
Snippets Groups Projects
Commit f3ca3603 authored by Henry Weller's avatar Henry Weller
Browse files

Vector: Add constructor from Foam::zero

parent f2b111e2
No related branches found
No related tags found
1 merge request!33Merge foundation
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment