src/OpenFOAM: Use Zero rather than pTraits<Type>

This commit is contained in:
Henry Weller
2016-03-22 10:38:30 +00:00
parent ce81b44dc6
commit 34361493f9
28 changed files with 78 additions and 86 deletions

View File

@ -394,7 +394,7 @@ Foam::tmp<Foam::scalarField> Foam::Function1Types::TableBase<Type>::x() const
template<class Type>
Foam::tmp<Foam::Field<Type>> Foam::Function1Types::TableBase<Type>::y() const
{
tmp<Field<Type>> tfld(new Field<Type>(table_.size(), pTraits<Type>::zero));
tmp<Field<Type>> tfld(new Field<Type>(table_.size(), Zero));
Field<Type>& fld = tfld.ref();
forAll(table_, i)