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 aa89254c79
commit 730f89dc9d
82 changed files with 224 additions and 224 deletions

View File

@ -47,7 +47,7 @@ void Foam::BlendedInterfacialModel<ModelType>::correctFixedFluxBCs
)
{
field.boundaryField()[patchI]
= pTraits<typename GeometricField::value_type>::zero;
= Zero;
}
}
}
@ -382,7 +382,7 @@ Foam::BlendedInterfacialModel<ModelType>::F() const
false
),
phase1_.mesh(),
dimensioned<Type>("zero", ModelType::dimF, pTraits<Type>::zero)
dimensioned<Type>("zero", ModelType::dimF, Zero)
)
);

View File

@ -47,7 +47,7 @@ void Foam::BlendedInterfacialModel<modelType>::correctFixedFluxBCs
)
{
field.boundaryField()[patchI]
= pTraits<typename GeometricField::value_type>::zero;
= Zero;
}
}
}
@ -280,7 +280,7 @@ Foam::BlendedInterfacialModel<modelType>::F() const
false
),
pair_.phase1().mesh(),
dimensioned<Type>("zero", modelType::dimF, pTraits<Type>::zero)
dimensioned<Type>("zero", modelType::dimF, Zero)
)
);