Commit 712b07d4 authored by Henry Weller's avatar Henry Weller
Browse files

Field: Added zero() constructor

parent 248d6065
......@@ -57,6 +57,13 @@ Foam::Field<Type>::Field(const label size, const Type& t)
{}
template<class Type>
Foam::Field<Type>::Field(const label size, const zero)
:
List<Type>(size, pTraits<Type>::zero)
{}
template<class Type>
Foam::Field<Type>::Field
(
......
......@@ -117,6 +117,9 @@ public:
//- Construct given size and initial value
Field(const label, const Type&);
//- Construct given size and initialed to zero
Field(const label, const zero);
//- Construct as copy of a UList\<Type\>
explicit Field(const UList<Type>&);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment