-
-
Notifications
You must be signed in to change notification settings - Fork 349
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Perform a comprehensive set of thermodynamic consistency tests for all thermo models #1299
Conversation
90ee063
to
2763d11
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@speth ... this looks great. The only thing that I believe is needed are some comments documenting how this test works - the code is readable, but it may be daunting for anyone not sufficiently familiar with AnyMap
and testing.
As a comment, I am also wondering whether google tests mind splitting things into *.h
and *.cpp
, as the actual tests only start on line 184 of consistency.cpp
. If not, then some comments indicating of what users should add where would be good to have.
About googletest: they now follow a Abseil live at head philosophy that won’t patch issues and recommends using the most recent commit. I am wondering whether this has something to do with the failures here? |
I don't think the idea of "Abseil live at head" is that they won't patch issues, it's that they (mostly) won't backport patches to the previous version or make a bug fix release, and that if you want a version that has all the latest bug fixes, you should just run the latest commit to the The current error is because MSVC++ 14.1 (Visual Studio 2017) doesn't seem to be available on the Github Actions builders -- only 14.0, 14.2, and 14.3, depending on whether it's the Windows 2019 or Windows 2022 builder. |
@speth Is that the known problem with SCons rearing its head again? |
@bryanwweber ... good point,
Locally, I can only use 14.0 (oldest) or 14.3 (newest), with none of the others working. Fwiw, my SCons version is 4.3.0. |
@bryanwweber / @speth ... hold on. It is the same issue 🎉 |
How much overlap is there between the phases you're identifying here and the list of undocumented and interested phases in the issue that I can't find because I'm on my phone? Are there any phases that we can remove? |
Changes proposed in this pull request
NotImplementedError
I've already uncovered several bugs using these tests, and have created issues for the ones that aren't being resolved as part of this PR (all of which tag this PR).
If applicable, fill in the issue number this pull request is fixing
Resolves Cantera/enhancements#114
If applicable, provide an example illustrating new features this pull request is introducing
All of the configuration for a set of consistency tests is specified in a YAML file,
consistency-tests.yaml
:And there is just a short block of code to create the parameterized test suite:
Which runs a set of different tests for each of the specified state vectors. Failing tests show the information about the particular case that is failing, e.g.:
Checklist
scons build
&scons test
) and unit tests address code coverage