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

This commit is contained in:
Henry
2011-06-08 16:26:43 +01:00
parent a044048c95
commit c16ee10bcb
2 changed files with 2 additions and 2 deletions

View File

@ -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++)
{

View File

@ -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++)
{