Gromacs
2020.1
|
Inherits TestWithParam< LeapFrogTestParameters >.
Test fixture for LeapFrog integrator.
Public Member Functions | |
void | testAgainstAnalyticalSolution (FloatingPointTolerance tolerance, const LeapFrogTestData &testData, const real totalTime) |
Test the numerical integrator against analytical solution for simple constant force case. More... | |
void | testAgainstReferenceData (const LeapFrogTestData &testData) |
Test the numerical integrator against pre-computed reference values. More... | |
Static Public Member Functions | |
static void | SetUpTestCase () |
Setup the runners one for all parameters sets. | |
Public Attributes | |
TestReferenceData | refData_ |
Reference data. | |
TestReferenceChecker | checker_ |
Checker for reference data. | |
Static Public Attributes | |
static std::unordered_map < std::string, void(*)(LeapFrogTestData *testData, const int numSteps)> | s_runners_ |
Availiable runners (CPU and GPU versions of the Leap-Frog) | |
|
inline |
Test the numerical integrator against analytical solution for simple constant force case.
[in] | tolerance | Tolerance |
[in] | testData | Test data object |
[in] | totalTime | Total numerical integration time |
|
inline |
Test the numerical integrator against pre-computed reference values.
[in] | testData | Test data object |