Closed jbscoggi closed 5 years ago
After the last commit, the code has been cleaned up and some redundant code removed, for a small improvement in performance (non exhaustive profile). I think this is a good point to review the code and merge as it successfully solves #74. We can have a dedicated issue for increasing performance later if we think it's necessary.
I think this addresses all of the issues (third-body and electrons) and the code seems clean. I will accept as soon as the tests pass. Next step: jacobians wrt Ts.
OK cool, thanks. For the temperature Jacobian, can you add an issue so we don't forget?
I will, but before, I need to review what it is missing. For example, the derivative of kf with a single temperature is ok. Slight modifications are needed for the sqrt(TTv) case. I will post a picture including the formulas (not complicated, but a little lengthy).
OK sounds good.
I went ahead and merged because I wanted to check if it passed and saw it did. Not sure where the code coverage report went though...
This PR fixes #74. Namely, it solves 3 issues found in the Kinetics::jacobianRho() function:
In addition to fixing these bugs, the
test_reaction_mechanism.cpp
file is updated to ensure the Jacobian is tested as well against a hard-coded mechanism implementation.Note that this is a draft for now because the proposed fixes are slow. A few optimizations will be put in place before allowing this to be merged.