perfectFluidI.H: Corrected return type

Patch provided by Juho Peltola
This commit is contained in:
Henry Weller
2015-08-19 13:43:59 +01:00
parent 61b6cde564
commit c9c4e47ac5

View File

@ -186,7 +186,7 @@ inline Foam::perfectFluid<Specie> Foam::operator+
scalar molr1 = pf1.nMoles()/nMoles;
scalar molr2 = pf2.nMoles()/nMoles;
return rhoConst<Specie>
return perfectFluid<Specie>
(
static_cast<const Specie&>(pf1)
+ static_cast<const Specie&>(pf2),
@ -207,7 +207,7 @@ inline Foam::perfectFluid<Specie> Foam::operator-
scalar molr1 = pf1.nMoles()/nMoles;
scalar molr2 = pf2.nMoles()/nMoles;
return rhoConst<Specie>
return perfectFluid<Specie>
(
static_cast<const Specie&>(pf1)
- static_cast<const Specie&>(pf2),