Fixed name clash for Y_[0]: deleted from objectRegistry

This commit is contained in:
Hrvoje Jasak 2010-09-29 22:15:07 +01:00
parent b9efa42018
commit a84fff7b48

View file

@ -50,7 +50,11 @@ const ThermoType& Foam::multiComponentMixture<ThermoType>::constructSpeciesData
template<class ThermoType> template<class ThermoType>
void Foam::multiComponentMixture<ThermoType>::correctMassFractions() void Foam::multiComponentMixture<ThermoType>::correctMassFractions()
{ {
volScalarField Yt = Y_[0]; volScalarField Yt
(
"Yt",
Y_[0]
);
for (label n=1; n<Y_.size(); n++) for (label n=1; n<Y_.size(); n++)
{ {