Commit d9f205d
committed
Use identity reorder maps when reactions were not reordered
The reversible and pressure-dependent reorder maps were built by counting
Cantera's reactions, which do not correspond one-to-one with the generated
code's: a reaction written with an explicit collider is pressure-dependent
to Cantera, while the Chemkin reader folds the collider into the rate
expression. For h2o2 that produced a permutation of eleven indices applied
to the six entries the generated code writes.
The maps exist only to undo a reordering of the reactions, so where the
reactions were not reordered they are now identities sized from the
generated mechanism. This also covers the case where the species were
reordered but the reactions were not.1 parent dbbd9a5 commit d9f205d
1 file changed
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
395 | 395 | | |
396 | 396 | | |
397 | 397 | | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
398 | 413 | | |
399 | 414 | | |
400 | 415 | | |
| |||
0 commit comments