Skip to content

Commit

Permalink
[Test] Fix negative_A_factor to use return value
Browse files Browse the repository at this point in the history
The changes from Cantera#803 regarding explicitly specifying the converted
output file didn't get included when this test was added in Cantera#822.
  • Loading branch information
bryanwweber authored and srikanthallu committed Sep 17, 2020
1 parent 0113c94 commit e787915
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions interfaces/cython/cantera/test/test_convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,8 @@ def test_negative_order_permissive(self):
tol=2e-7)

def test_negative_A_factor(self):
self.convert('negative-rate.inp', thermo='dummy-thermo.dat')
gas = ct.Solution('negative-rate.cti') # Validate the mechanism
output = self.convert('negative-rate.inp', thermo='dummy-thermo.dat')
gas = ct.Solution(output) # Validate the mechanism
self.assertLess(gas.reaction(4).rate.pre_exponential_factor, 0)
self.assertLess(gas.reaction(1).rate.pre_exponential_factor, 0)
self.assertLess(gas.reaction(2).rate.pre_exponential_factor, 0)
Expand Down

0 comments on commit e787915

Please sign in to comment.