From af8e4376e6db145644302453a6f1882b7b5cedf9 Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Tue, 25 Jan 2022 11:18:15 +0000 Subject: [PATCH] chemistryModel::ISAT: Minor optimisation --- .../chemistryModel/chemistryModel/tabulation/ISAT/ISAT.C | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/thermophysicalModels/chemistryModel/chemistryModel/tabulation/ISAT/ISAT.C b/src/thermophysicalModels/chemistryModel/chemistryModel/tabulation/ISAT/ISAT.C index 6e3fdc8ff0..489887ade5 100644 --- a/src/thermophysicalModels/chemistryModel/chemistryModel/tabulation/ISAT/ISAT.C +++ b/src/thermophysicalModels/chemistryModel/chemistryModel/tabulation/ISAT/ISAT.C @@ -222,14 +222,11 @@ void Foam::chemistryTabulationMethods::ISAT::calcNewC // Rphiq = phi0->Rphi(); - for (label i=0; inActive(); + const label si = completeToSimplified[i]; if (si != -1) { @@ -257,7 +254,7 @@ void Foam::chemistryTabulationMethods::ISAT::calcNewC else { // Extrapolate using the gradients matrix - for (label j=0; j