perfectFluidI.H: Corrected return type
Patch provided by Juho Peltola
This commit is contained in:
parent
9e12d62156
commit
4f87b904e5
1 changed files with 2 additions and 2 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue