Removed unnecessary cast

This commit is contained in:
Hrvoje Jasak 2013-08-20 11:42:53 +01:00
parent caf64c6c10
commit f475e7e958
2 changed files with 7 additions and 5 deletions

View file

@ -154,7 +154,7 @@ tmp<Field<Type> > coupledFvPatchField<Type>::valueInternalCoeffs
const tmp<scalarField>& w
) const
{
return Type(pTraits<Type>::one)*w;
return pTraits<Type>::one*w;
}
@ -164,14 +164,14 @@ tmp<Field<Type> > coupledFvPatchField<Type>::valueBoundaryCoeffs
const tmp<scalarField>& w
) const
{
return Type(pTraits<Type>::one)*(1.0 - w);
return pTraits<Type>::one*(1.0 - w);
}
template<class Type>
tmp<Field<Type> > coupledFvPatchField<Type>::gradientInternalCoeffs() const
{
return -Type(pTraits<Type>::one)*this->patch().deltaCoeffs();
return -pTraits<Type>::one*this->patch().deltaCoeffs();
}

View file

@ -135,7 +135,8 @@ tmp<Field<Type> > zeroGradientFvPatchField<Type>::valueBoundaryCoeffs
template<class Type>
tmp<Field<Type> > zeroGradientFvPatchField<Type>::gradientInternalCoeffs() const
tmp<Field<Type> >
zeroGradientFvPatchField<Type>::gradientInternalCoeffs() const
{
return tmp<Field<Type> >
(
@ -145,7 +146,8 @@ tmp<Field<Type> > zeroGradientFvPatchField<Type>::gradientInternalCoeffs() const
template<class Type>
tmp<Field<Type> > zeroGradientFvPatchField<Type>::gradientBoundaryCoeffs() const
tmp<Field<Type> >
zeroGradientFvPatchField<Type>::gradientBoundaryCoeffs() const
{
return tmp<Field<Type> >
(