Commit 49331bf9 authored by Andrew Heather's avatar Andrew Heather
Browse files

ENH: added xfer function to Field (stopped falling through to List)

parent 429ab270
......@@ -578,6 +578,13 @@ tmp<Field<Type> > Field<Type>::T() const
}
template<class Type>
Xfer<Field<Type> > Field<Type>::xfer()
{
return xferMove(*this);
}
template<class Type>
void Field<Type>::writeEntry(const word& keyword, Ostream& os) const
{
......
......@@ -302,6 +302,9 @@ public:
//- Return the field transpose (only defined for second rank tensors)
tmp<Field<Type> > T() const;
//- Transfer contents to the Xfer container
Xfer<Field<Type> > xfer();
//- Write the field as a dictionary entry
void writeEntry(const word& keyword, Ostream& os) const;
......
Markdown is supported
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