[Cython] Made ReactingSurface1D.coverage_enabled into a property
This commit is contained in:
parent
430e28e413
commit
eb01aee6f5
1 changed files with 4 additions and 3 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue