diff --git a/interfaces/cython/cantera/test/test_kinetics.py b/interfaces/cython/cantera/test/test_kinetics.py index dbc9d901c..dc5414551 100644 --- a/interfaces/cython/cantera/test/test_kinetics.py +++ b/interfaces/cython/cantera/test/test_kinetics.py @@ -160,36 +160,36 @@ class KineticsRepeatability(utilities.CanteraTest): def check_rates_composition(self, mech): gas = self.setup_gas(mech) - gas.TRX = self.T0, self.rho0, self.X0 + gas.TDX = self.T0, self.rho0, self.X0 w1 = gas.net_production_rates # change everything to guarantee recomputation of rates - gas.TRX = self.T1, self.rho1, self.X1 + gas.TDX = self.T1, self.rho1, self.X1 w2 = gas.net_production_rates - gas.TRX = self.T0, self.rho0, self.X1 + gas.TDX = self.T0, self.rho0, self.X1 w3 = gas.net_production_rates # change only composition, and make sure the rates match - gas.TRX = self.T0, self.rho0, self.X0 + gas.TDX = self.T0, self.rho0, self.X0 w4 = gas.net_production_rates self.assertArrayNear(w1, w4) def check_rates_temperature1(self, mech): gas = self.setup_gas(mech) - gas.TRX = self.T0, self.rho0, self.X0 + gas.TDX = self.T0, self.rho0, self.X0 w1 = gas.net_production_rates # change everything to guarantee recomputation of rates - gas.TRX = self.T1, self.rho1, self.X1 + gas.TDX = self.T1, self.rho1, self.X1 w2 = gas.net_production_rates - gas.TRX = self.T1, self.rho0, self.X0 + gas.TDX = self.T1, self.rho0, self.X0 w3 = gas.net_production_rates # change only temperature, and make sure the rates match - gas.TRX = self.T0, self.rho0, self.X0 + gas.TDX = self.T0, self.rho0, self.X0 w4 = gas.net_production_rates self.assertArrayNear(w1, w4) diff --git a/interfaces/cython/cantera/test/test_thermo.py b/interfaces/cython/cantera/test/test_thermo.py index 3f8d614b3..bb207cb78 100644 --- a/interfaces/cython/cantera/test/test_thermo.py +++ b/interfaces/cython/cantera/test/test_thermo.py @@ -499,7 +499,7 @@ class TestInterfacePhase(utilities.CanteraTest): def setUp(self): self.gas = ct.Solution('diamond.xml', 'gas') self.solid = ct.Solution('diamond.xml', 'diamond') - self.interface = ct.Solution('diamond.xml', 'diamond_100', + self.interface = ct.Interface('diamond.xml', 'diamond_100', (self.gas, self.solid)) def test_properties(self):