From 97cbfccb150ed26cf938c20b0eee136bd4afe6d4 Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Fri, 1 Dec 2017 14:43:36 +0000 Subject: [PATCH] chemFoam: Moved chemistry reference into createFieldRefs --- applications/solvers/combustion/chemFoam/createFieldRefs.H | 1 + applications/solvers/combustion/chemFoam/createFields.H | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/applications/solvers/combustion/chemFoam/createFieldRefs.H b/applications/solvers/combustion/chemFoam/createFieldRefs.H index ef34180b3..db7fb51a1 100644 --- a/applications/solvers/combustion/chemFoam/createFieldRefs.H +++ b/applications/solvers/combustion/chemFoam/createFieldRefs.H @@ -1,3 +1,4 @@ +psiChemistryModel& chemistry = pChemistry(); scalar dtChem = refCast(chemistry).deltaTChem()[0]; basicMultiComponentMixture& composition = thermo.composition(); PtrList& Y = composition.Y(); diff --git a/applications/solvers/combustion/chemFoam/createFields.H b/applications/solvers/combustion/chemFoam/createFields.H index bcd8e733b..28529708c 100644 --- a/applications/solvers/combustion/chemFoam/createFields.H +++ b/applications/solvers/combustion/chemFoam/createFields.H @@ -29,7 +29,6 @@ thermo.validate(args.executable(), "h"); autoPtr pChemistry(psiChemistryModel::New(thermo)); - psiChemistryModel& chemistry = pChemistry(); volScalarField rho (