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
7e5d9982
Commit
7e5d9982
authored
Mar 22, 2016
by
Henry Weller
Browse files
etc/codeTemplates/BC: Use Use 'Zero' rather than 'pTraits<Type>::zero' to initialize to 0
parent
628eca41
Changes
1
Hide whitespace changes
Inline
Side-by-side
etc/codeTemplates/BC/BC.C
View file @
7e5d9982
...
...
@@ -50,15 +50,15 @@ CONSTRUCT
:
PARENT
(
p
,
iF
),
scalarData_
(
0
.
0
),
data_
(
pTraits
<
TYPE
>::
z
ero
),
fieldData_
(
p
.
size
(),
pTraits
<
TYPE
>::
z
ero
),
data_
(
Z
ero
),
fieldData_
(
p
.
size
(),
Z
ero
),
timeVsData_
(),
wordData_
(
"wordDefault"
),
labelData_
(
-
1
),
boolData_
(
false
)
{
this
->
refValue
()
=
pTraits
<
TYPE
>::
z
ero
;
this
->
refGrad
()
=
pTraits
<
TYPE
>::
z
ero
;
this
->
refValue
()
=
Z
ero
;
this
->
refGrad
()
=
Z
ero
;
this
->
valueFraction
()
=
0
.
0
;
}
...
...
@@ -81,7 +81,7 @@ CONSTRUCT
labelData_
(
-
1
),
boolData_
(
false
)
{
this
->
refGrad
()
=
pTraits
<
TYPE
>::
z
ero
;
this
->
refGrad
()
=
Z
ero
;
this
->
valueFraction
()
=
0
.
0
;
this
->
refValue
()
=
FIELD
(
"fieldData"
,
dict
,
p
.
size
());
...
...
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