[Input] Normalize YAML reaction equation for Chebyshev reactions

Fix the reaction equation to always include the (+M). Previously, if the (+M)
was omitted, an invalid reaction string was generated.
This commit is contained in:
Ray Speth 2019-09-16 18:02:50 -04:00
parent ee41824b1e
commit 6c8adf47b3

View file

@ -498,7 +498,7 @@ class Chebyshev(KineticsModel):
self.quantity_units = quantity_units
def reaction_string_suffix(self, species):
return ' (+{})'.format(species)
return ' (+{})'.format(species if species else 'M')
def reduce(self, output):
output['type'] = 'Chebyshev'