From a84fff7b48a4e9076e8c425fcc008e3bac68709d Mon Sep 17 00:00:00 2001 From: Hrvoje Jasak Date: Wed, 29 Sep 2010 22:15:07 +0100 Subject: [PATCH] Fixed name clash for Y_[0]: deleted from objectRegistry --- .../mixtures/multiComponentMixture/multiComponentMixture.C | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/thermophysicalModels/reactionThermo/mixtures/multiComponentMixture/multiComponentMixture.C b/src/thermophysicalModels/reactionThermo/mixtures/multiComponentMixture/multiComponentMixture.C index d24f74bdb..8d8169496 100644 --- a/src/thermophysicalModels/reactionThermo/mixtures/multiComponentMixture/multiComponentMixture.C +++ b/src/thermophysicalModels/reactionThermo/mixtures/multiComponentMixture/multiComponentMixture.C @@ -50,7 +50,11 @@ const ThermoType& Foam::multiComponentMixture::constructSpeciesData template void Foam::multiComponentMixture::correctMassFractions() { - volScalarField Yt = Y_[0]; + volScalarField Yt + ( + "Yt", + Y_[0] + ); for (label n=1; n