mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +00:00
etc/codeTemplates/BC: Use Use 'Zero' rather than 'pTraits<Type>::zero' to initialize to 0
This commit is contained in:
@ -50,15 +50,15 @@ CONSTRUCT
|
|||||||
:
|
:
|
||||||
PARENT(p, iF),
|
PARENT(p, iF),
|
||||||
scalarData_(0.0),
|
scalarData_(0.0),
|
||||||
data_(pTraits<TYPE>::zero),
|
data_(Zero),
|
||||||
fieldData_(p.size(), pTraits<TYPE>::zero),
|
fieldData_(p.size(), Zero),
|
||||||
timeVsData_(),
|
timeVsData_(),
|
||||||
wordData_("wordDefault"),
|
wordData_("wordDefault"),
|
||||||
labelData_(-1),
|
labelData_(-1),
|
||||||
boolData_(false)
|
boolData_(false)
|
||||||
{
|
{
|
||||||
this->refValue() = pTraits<TYPE>::zero;
|
this->refValue() = Zero;
|
||||||
this->refGrad() = pTraits<TYPE>::zero;
|
this->refGrad() = Zero;
|
||||||
this->valueFraction() = 0.0;
|
this->valueFraction() = 0.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -81,7 +81,7 @@ CONSTRUCT
|
|||||||
labelData_(-1),
|
labelData_(-1),
|
||||||
boolData_(false)
|
boolData_(false)
|
||||||
{
|
{
|
||||||
this->refGrad() = pTraits<TYPE>::zero;
|
this->refGrad() = Zero;
|
||||||
this->valueFraction() = 0.0;
|
this->valueFraction() = 0.0;
|
||||||
|
|
||||||
this->refValue() = FIELD("fieldData", dict, p.size());
|
this->refValue() = FIELD("fieldData", dict, p.size());
|
||||||
|
|||||||
Reference in New Issue
Block a user