From 858f63cf782b382ccc1809f7470e30ed090c8ca5 Mon Sep 17 00:00:00 2001 From: Yeongdo Park Date: Tue, 1 Jan 2019 11:03:02 -0500 Subject: [PATCH] local variable for pure thermal conductivity loop --- testApp/chemFoam.C | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/testApp/chemFoam.C b/testApp/chemFoam.C index 3d0675a..d54059f 100644 --- a/testApp/chemFoam.C +++ b/testApp/chemFoam.C @@ -247,9 +247,9 @@ int main(int argc, char *argv[]) forAll(thermo.composition().species(), k) { - XY = 0.0; - XY[k] = 1.0; - gas_.setState_TPY(thermo.T()[0], p[0], XY.data()); + scalarField YY(0.0); + YY[k] = 1.0; + gas_.setState_TPY(thermo.T()[0], p[0], YY.data()); logWriter (