[Cython] Made ReactingSurface1D.coverage_enabled into a property

This commit is contained in:
Ray Speth 2013-02-01 23:40:36 +00:00
parent 430e28e413
commit eb01aee6f5

View file

@ -288,9 +288,10 @@ cdef class ReactingSurface1D(Boundary1D):
'InterfaceKinetics.')
self.surf.setKineticsMgr(<CxxInterfaceKinetics*>kin.kinetics)
def enable_coverage_equations(self, on=True):
""" Turn solving the surface coverage equations on or off. """
self.surf.enableCoverageEquations(<cbool>on)
property coverage_enabled:
"""Controls whether or not to solve the surface coverage equations."""
def __set__(self, value):
self.surf.enableCoverageEquations(<cbool>value)
cdef class _FlowBase(Domain1D):