From 79b3a8ae39cc31f071c3ba1d4760e46e6912ab4e Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Tue, 24 Mar 2015 17:45:38 -0400 Subject: [PATCH] [ck2cti] Allow arbitrary reactant stoichiometries There is no reason to disallow more than 3 reactants --- interfaces/cython/cantera/ck2cti.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/interfaces/cython/cantera/ck2cti.py b/interfaces/cython/cantera/ck2cti.py index ba24b4709..92ab9c045 100644 --- a/interfaces/cython/cantera/ck2cti.py +++ b/interfaces/cython/cantera/ck2cti.py @@ -1179,8 +1179,8 @@ class Parser(object): # Determine the appropriate units for k(T) and k(T,P) based on the number of reactants # This assumes elementary kinetics for all reactions rStoich = sum(r[0] for r in reaction.reactants) + (1 if thirdBody else 0) - if rStoich > 3 or rStoich < 1: - raise InputParseError('Invalid number of reactant species ({0}) for reaction {1}.'.format(rStoich, reaction)) + if rStoich < 1: + raise InputParseError('No reactant species for reaction {1}.'.format(reaction)) length_dim = 3 * (rStoich - 1) quantity_dim = rStoich - 1