libantioch / antioch

C++ Chemical Kinetics, Thermodynaimics, and Transport Library
https://libantioch.github.io/
Other
22 stars 17 forks source link

Bugfix/arrhenius kooij double agent #230

Closed SylvainPlessis closed 7 years ago

SylvainPlessis commented 7 years ago

Fix to issue #211.

As explained in the issue, the change are to test the rate constant model before checking if a parameter is found, which fixes the double agent Arrhenius falloff problem (first commit), and to keep the Kooij model anyway for the falloff to be sure not to trim the power parameter of the other rate constant (second commit).

Those two situations are added in the _parsingxml test (last commit).

pbauman commented 7 years ago

So, this looks OK to me. Was there a reason we didn't merge this right away? I believe @klbudzin hit the issue this fixes recently?

roystgnr commented 7 years ago

IIRC it worked for me but I never found time to give it any real review or testing. I'm okay to merge if you are, though.

pbauman commented 7 years ago

It looks like he has some testing in this PR. I'll try and confirm later today and, if satisfied, I'll go ahead and merge.

pbauman commented 7 years ago

OK, I pulled this down and ran it. Looks good. I haven't actually tried parsing gri3 kinetics yet, but that can wait for a separate PR.