Removed unnecessary cast
This commit is contained in:
parent
caf64c6c10
commit
f475e7e958
2 changed files with 7 additions and 5 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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> >
|
||||
(
|
||||
|
|
Reference in a new issue