Commit c16ee10b authored by Henry's avatar Henry
Browse files

mixtureThermos: Set name of Yt so that it doesn't displace Y[0] from the database

parent a044048c
......@@ -30,7 +30,7 @@ License
template<class ThermoSolidType>
void Foam::multiComponentSolidMixture<ThermoSolidType>::correctMassFractions()
{
volScalarField Yt = Y_[0];
volScalarField Yt("Yt", Y_[0]);
for (label n=1; n<Y_.size(); n++)
{
......
......@@ -49,7 +49,7 @@ const ThermoType& Foam::multiComponentMixture<ThermoType>::constructSpeciesData
template<class ThermoType>
void Foam::multiComponentMixture<ThermoType>::correctMassFractions()
{
volScalarField Yt = Y_[0];
volScalarField Yt("Yt", Y_[0]);
for (label n=1; n<Y_.size(); n++)
{
......
Supports Markdown
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