Skip to content

Commit

Permalink
[cti2yaml] Do not let ambiguous reaction specification pass silently
Browse files Browse the repository at this point in the history
  • Loading branch information
ischoegl authored and speth committed Nov 18, 2021
1 parent 773b8ed commit 032de5e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions interfaces/cython/cantera/cti2yaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -1147,6 +1147,11 @@ def get_yaml(self, out):
hits.append(reaction)
else:
misses.append(reaction)

if not hits:
_printerr("WARNING: Unable to generate field '{}'\nfrom reaction "
"specification '{}' ".format(name, self.reactions[i][1]))

_reactions[name] = hits
_reactions["reactions"] = misses
self.reactions[i] = [name, "all"]
Expand Down

0 comments on commit 032de5e

Please sign in to comment.