Skip to content
Snippets Groups Projects
Commit c9c4e47a authored by Henry Weller's avatar Henry Weller
Browse files

perfectFluidI.H: Corrected return type

Patch provided by Juho Peltola
parent 61b6cde5
Branches
Tags
No related merge requests found
......@@ -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),
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment