Skip to content

Commit

Permalink
Fixed handling of falloff reactions with specific third bodies
Browse files Browse the repository at this point in the history
  • Loading branch information
speth committed Aug 28, 2012
1 parent 7ef2bb1 commit 1de94e0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions interfaces/python/ctml_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1282,15 +1282,16 @@ def __init__(self, equation, kf0, kf,
if 'M)' in self._r:
del self._r['M)']
del self._p['M)']
if 'm)' in self._r:
elif 'm)' in self._r:
del self._r['m)']
del self._p['m)']
else:
for r in self._r.keys():
if r[-1] == ')' and r.find('(') < 0:
species = r[:-1]
if self._eff:
raise CTI_Error('(+ '+mspecies+') and '+self._eff+' cannot both be specified')
self._eff = r[-1]+':1.0'
raise CTI_Error('(+ '+species+') and '+self._eff+' cannot both be specified')
self._eff = species+':1.0'
self._effm = 0.0

del self._r[r]
Expand Down

0 comments on commit 1de94e0

Please sign in to comment.