Use Zero rather than pTraits<Type>::zero unless a static typed '0' is required
This commit is contained in:
@ -36,7 +36,7 @@ Foam::fixedProfileFvPatchField<Type>::fixedProfileFvPatchField
|
||||
:
|
||||
fixedValueFvPatchField<Type>(p, iF),
|
||||
profile_(),
|
||||
dir_(pTraits<vector>::zero),
|
||||
dir_(Zero),
|
||||
origin_(0)
|
||||
{}
|
||||
|
||||
@ -51,7 +51,7 @@ Foam::fixedProfileFvPatchField<Type>::fixedProfileFvPatchField
|
||||
:
|
||||
fixedValueFvPatchField<Type>(p, iF, fld),
|
||||
profile_(),
|
||||
dir_(pTraits<vector>::zero),
|
||||
dir_(Zero),
|
||||
origin_(0)
|
||||
{}
|
||||
|
||||
|
||||
@ -95,7 +95,7 @@ Foam::fixedValueFvsPatchField<Type>::valueInternalCoeffs
|
||||
{
|
||||
return tmp<Field<Type>>
|
||||
(
|
||||
new Field<Type>(this->size(), pTraits<Type>::zero)
|
||||
new Field<Type>(this->size(), Zero)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user