Use Zero rather than pTraits<Type>::zero unless a static typed '0' is required

This commit is contained in:
Henry Weller
2016-03-22 17:46:52 +00:00
parent 59f7f1ef0e
commit fa8929df6d
82 changed files with 224 additions and 224 deletions

View File

@ -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)
{}

View File

@ -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)
);
}