Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openfoam
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Development
openfoam
Commits
4edb771e
Commit
4edb771e
authored
9 years ago
by
Henry Weller
Browse files
Options
Downloads
Patches
Plain Diff
Field: Added construction from and assignment to zero
parent
5c93cb5c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/OpenFOAM/fields/Fields/Field/Field.C
+8
-1
8 additions, 1 deletion
src/OpenFOAM/fields/Fields/Field/Field.C
src/OpenFOAM/fields/Fields/Field/Field.H
+1
-0
1 addition, 0 deletions
src/OpenFOAM/fields/Fields/Field/Field.H
with
9 additions
and
1 deletion
src/OpenFOAM/fields/Fields/Field/Field.C
+
8
−
1
View file @
4edb771e
...
@@ -60,7 +60,7 @@ Foam::Field<Type>::Field(const label size, const Type& t)
...
@@ -60,7 +60,7 @@ Foam::Field<Type>::Field(const label size, const Type& t)
template
<
class
Type
>
template
<
class
Type
>
Foam
::
Field
<
Type
>::
Field
(
const
label
size
,
const
zero
)
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)
...
@@ -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
Type
>
template
<
class
Form
,
class
Cmpt
,
Foam
::
direction
nCmpt
>
template
<
class
Form
,
class
Cmpt
,
Foam
::
direction
nCmpt
>
void
Foam
::
Field
<
Type
>::
operator
=
(
const
VectorSpace
<
Form
,
Cmpt
,
nCmpt
>&
vs
)
void
Foam
::
Field
<
Type
>::
operator
=
(
const
VectorSpace
<
Form
,
Cmpt
,
nCmpt
>&
vs
)
...
...
This diff is collapsed.
Click to expand it.
src/OpenFOAM/fields/Fields/Field/Field.H
+
1
−
0
View file @
4edb771e
...
@@ -347,6 +347,7 @@ public:
...
@@ -347,6 +347,7 @@ public:
void
operator
=
(
const
SubField
<
Type
>&
);
void
operator
=
(
const
SubField
<
Type
>&
);
void
operator
=
(
const
tmp
<
Field
<
Type
>>&
);
void
operator
=
(
const
tmp
<
Field
<
Type
>>&
);
void
operator
=
(
const
Type
&
);
void
operator
=
(
const
Type
&
);
void
operator
=
(
const
zero
);
template
<
class
Form
,
class
Cmpt
,
direction
nCmpt
>
template
<
class
Form
,
class
Cmpt
,
direction
nCmpt
>
void
operator
=
(
const
VectorSpace
<
Form
,
Cmpt
,
nCmpt
>&
);
void
operator
=
(
const
VectorSpace
<
Form
,
Cmpt
,
nCmpt
>&
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment