From 0b4af9ac0eed046685d2c3d8258f4f02c8f4432d Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Tue, 22 Jan 2013 20:35:50 +0000 Subject: [PATCH] [ck2cti] Fixed parsing duplicate reactions with explicit reverse rate constants Cherry-pick of r2066. --- interfaces/python/ck2cti.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/interfaces/python/ck2cti.py b/interfaces/python/ck2cti.py index 4b6f0f0f4..6c87db743 100755 --- a/interfaces/python/ck2cti.py +++ b/interfaces/python/ck2cti.py @@ -982,6 +982,7 @@ def readKineticsEntry(entry, speciesDict, energyUnits, moleculeUnits): pdepArrhenius = None efficiencies = {} chebyshevCoeffs = [] + revReaction = None # Note that the subsequent lines could be in any order for line in lines[1:]: @@ -1097,6 +1098,9 @@ def readKineticsEntry(entry, speciesDict, energyUnits, moleculeUnits): for collider, efficiency in zip(tokens[0::2], tokens[1::2]): efficiencies[collider.strip()] = float(efficiency.strip()) + if revReaction: + revReaction.duplicate = reaction.duplicate + # Decide which kinetics to keep and store them on the reaction object # Only one of these should be true at a time! if chebyshev is not None: