Skip to content

Commit

Permalink
[Python] Release reaction rates when assembling from parts
Browse files Browse the repository at this point in the history
  • Loading branch information
ischoegl committed Jun 12, 2021
1 parent dd66b94 commit 1c56d0a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions interfaces/cython/cantera/base.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,11 @@ cdef class _SolutionBase:
if not kinetics:
kinetics = "none"

for r in reactions:
if not r.uses_legacy and r._linked:
# release link to MultiRate evaluator
r.rate._release()

cdef ThermoPhase phase
cdef Reaction reaction
if isinstance(self, Kinetics):
Expand Down

0 comments on commit 1c56d0a

Please sign in to comment.