mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: added xfer function to Field (stopped falling through to List)
This commit is contained in:
@ -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>
|
template<class Type>
|
||||||
void Field<Type>::writeEntry(const word& keyword, Ostream& os) const
|
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)
|
//- Return the field transpose (only defined for second rank tensors)
|
||||||
tmp<Field<Type> > T() const;
|
tmp<Field<Type> > T() const;
|
||||||
|
|
||||||
|
//- Transfer contents to the Xfer container
|
||||||
|
Xfer<Field<Type> > xfer();
|
||||||
|
|
||||||
//- Write the field as a dictionary entry
|
//- Write the field as a dictionary entry
|
||||||
void writeEntry(const word& keyword, Ostream& os) const;
|
void writeEntry(const word& keyword, Ostream& os) const;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user