[ck2cti] Fixed parsing duplicate reactions with explicit reverse rate constants
Fixes 139.
This commit is contained in:
parent
78f6e61703
commit
7527b64af7
1 changed files with 4 additions and 0 deletions
|
|
@ -1110,6 +1110,7 @@ class Parser(object):
|
|||
pdepArrhenius = None
|
||||
efficiencies = {}
|
||||
chebyshevCoeffs = []
|
||||
revReaction = None
|
||||
|
||||
# Note that the subsequent lines could be in any order
|
||||
for line in lines[1:]:
|
||||
|
|
@ -1228,6 +1229,9 @@ class Parser(object):
|
|||
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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue