Skip to content

Commit

Permalink
forgot dealloc
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicholaswogan committed May 3, 2024
1 parent 998dec7 commit 7ae6508
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions equilibrate/cython/_equilibrate.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ cdef class ChemEquiAnalysis:
if len(err.strip()) > 0:
raise EquilibrateException(err.decode("utf-8").strip())

def __dealloc__(self):
cea_pxd.deallocate_chemequianalysis(&self._ptr)

def solve(self, double P, double T, molfracs_atoms = None, molfracs_species = None):
"""Computes chemical equilibrium given input atom or species mole fractions.
If successful, then the equilibrium composition will be stored in a number
Expand Down

0 comments on commit 7ae6508

Please sign in to comment.