Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
49331bf9
Commit
49331bf9
authored
Nov 22, 2010
by
Andrew Heather
Browse files
ENH: added xfer function to Field (stopped falling through to List)
parent
429ab270
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/OpenFOAM/fields/Fields/Field/Field.C
View file @
49331bf9
...
...
@@ -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
{
...
...
src/OpenFOAM/fields/Fields/Field/Field.H
View file @
49331bf9
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment