Skip to content

Commit

Permalink
DILUTE Error with Latest Stoichiometry Update (#515)
Browse files Browse the repository at this point in the history
* Fixed error when trying to run with DILUTE as no stoich coeffs were listed in mechanism.reac file
  • Loading branch information
AlfredMayhew authored Jan 7, 2024
1 parent 27ede44 commit 63cf98e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/mech_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ def convert_to_fortran(input_file, mech_dir, mcm_vers):
for spec in speciesList:
reactionNumber += 1
mech_reac_list.append(str(reactionNumber) + ' ' \
+ str(speciesList.index(spec) + 1) + '\n')
+ str(speciesList.index(spec) + 1) + ' 1.0\n')

with open(os.path.join(mech_dir, 'mechanism.prod'), 'w') as prod_file:
# Output number of species and number of reactions.
Expand Down

0 comments on commit 63cf98e

Please sign in to comment.