diff --git a/src/thermophysicalModels/basicSolidThermo/solidMixtureThermo/mixtures/multiComponentSolidMixture/multiComponentSolidMixture.C b/src/thermophysicalModels/basicSolidThermo/solidMixtureThermo/mixtures/multiComponentSolidMixture/multiComponentSolidMixture.C index f43f4866b9e53217eccba2f945ecfc72c20aa0ae..b9cfca7a1a73a712e3be2841c3490320f2dba945 100644 --- a/src/thermophysicalModels/basicSolidThermo/solidMixtureThermo/mixtures/multiComponentSolidMixture/multiComponentSolidMixture.C +++ b/src/thermophysicalModels/basicSolidThermo/solidMixtureThermo/mixtures/multiComponentSolidMixture/multiComponentSolidMixture.C @@ -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++) { diff --git a/src/thermophysicalModels/reactionThermo/mixtures/multiComponentMixture/multiComponentMixture.C b/src/thermophysicalModels/reactionThermo/mixtures/multiComponentMixture/multiComponentMixture.C index 63dc458e0aa547fb35f2e1c862c1b934ad200c29..3adf2299bae077ec737daf71e540f4f4db2fbe30 100644 --- a/src/thermophysicalModels/reactionThermo/mixtures/multiComponentMixture/multiComponentMixture.C +++ b/src/thermophysicalModels/reactionThermo/mixtures/multiComponentMixture/multiComponentMixture.C @@ -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++) {