[ctml_writer] Fix handling of third body names containing parentheses

Replace the heuristic used to remove the third body terms from the
reactant and product lists to handle species names that include
parentheses.
This commit is contained in:
Ray Speth 2017-07-12 00:03:28 -04:00
parent 6d591b82ef
commit 44b24ca873

View file

@ -1400,7 +1400,7 @@ class pdep_reaction(reaction):
del self._p['m)']
else:
for r in list(self._r.keys()):
if r[-1] == ')' and r.find('(') < 0:
if r[-1] == ')' and r in self._p:
species = r[:-1]
if self._eff:
raise CTI_Error("In reaction '{0}', explcit third body "