|
Gromacs
2025.3
|
#include <programs/mdrun/tests/energycomparison.h>
Function object to compare all energy terms of reference with all matching terms from test within the given tolerances.
Public Member Functions | |
| EnergyComparison (const EnergyTermsToCompare &energyTermsToCompare, MaxNumFrames maxNumFrames) | |
| Constructor. | |
| std::vector< std::string > | getEnergyNames () const |
| Return the names of energies that will be compared. More... | |
| void | operator() (const EnergyFrame &reference, const EnergyFrame &test) const |
Compare reference with test within energyTermsToCompare_. More... | |
Static Public Member Functions | |
| static EnergyTermsToCompare | defaultEnergyTermsToCompare () |
| Defaults for energy comparisons. | |
| std::vector< std::string > gmx::test::EnergyComparison::getEnergyNames | ( | ) | const |
Return the names of energies that will be compared.
This function can be used to provide an input for openEnergyFileToReadTerms().
| void gmx::test::EnergyComparison::operator() | ( | const EnergyFrame & | reference, |
| const EnergyFrame & | test | ||
| ) | const |
Compare reference with test within energyTermsToCompare_.
Ignore any key found in either reference or test that is not found in the other. For all keys found in both frames, compare the values with EXPECT_REAL_EQ_TOL and the given tolerance for that key.
1.8.5