[Python/1D] Fix default transport model selection

Broken in bd8a5d0, since the base Transport class no longer returns a false
value for the transport_model property.
This commit is contained in:
Ray Speth 2016-07-25 15:35:01 -04:00
parent 3b522dcfb0
commit 6b588c5140

View file

@ -389,7 +389,7 @@ cdef class _FlowBase(Domain1D):
def __init__(self, *args, **kwargs):
self.domain = <CxxDomain1D*>(self.flow)
super().__init__(*args, **kwargs)
if not self.gas.transport_model:
if self.gas.transport_model == 'Transport':
self.gas.transport_model = 'Mix'
self.flow.setKinetics(deref(self.gas.kinetics))
self.flow.setTransport(deref(self.gas.transport))