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
4edb771e
Commit
4edb771e
authored
Mar 22, 2016
by
Henry Weller
Browse files
Field: Added construction from and assignment to zero
parent
5c93cb5c
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/OpenFOAM/fields/Fields/Field/Field.C
View file @
4edb771e
...
...
@@ -60,7 +60,7 @@ 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
>::
z
ero
)
List
<
Type
>
(
size
,
Z
ero
)
{}
...
...
@@ -707,6 +707,13 @@ void Foam::Field<Type>::operator=(const Type& t)
}
template
<
class
Type
>
void
Foam
::
Field
<
Type
>::
operator
=
(
const
zero
)
{
List
<
Type
>::
operator
=
(
Zero
);
}
template
<
class
Type
>
template
<
class
Form
,
class
Cmpt
,
Foam
::
direction
nCmpt
>
void
Foam
::
Field
<
Type
>::
operator
=
(
const
VectorSpace
<
Form
,
Cmpt
,
nCmpt
>&
vs
)
...
...
src/OpenFOAM/fields/Fields/Field/Field.H
View file @
4edb771e
...
...
@@ -347,6 +347,7 @@ public:
void
operator
=
(
const
SubField
<
Type
>&
);
void
operator
=
(
const
tmp
<
Field
<
Type
>>&
);
void
operator
=
(
const
Type
&
);
void
operator
=
(
const
zero
);
template
<
class
Form
,
class
Cmpt
,
direction
nCmpt
>
void
operator
=
(
const
VectorSpace
<
Form
,
Cmpt
,
nCmpt
>&
);
...
...
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