Gromacs  2020.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes
gmx::test::anonymous_namespace{leapfrog.cpp}::LeapFrogTest Class Reference

Inherits TestWithParam< LeapFrogTestParameters >.

+ Collaboration diagram for gmx::test::anonymous_namespace{leapfrog.cpp}::LeapFrogTest:

Description

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)
 

Member Function Documentation

void gmx::test::anonymous_namespace{leapfrog.cpp}::LeapFrogTest::testAgainstAnalyticalSolution ( FloatingPointTolerance  tolerance,
const LeapFrogTestData &  testData,
const real  totalTime 
)
inline

Test the numerical integrator against analytical solution for simple constant force case.

Parameters
[in]toleranceTolerance
[in]testDataTest data object
[in]totalTimeTotal numerical integration time
void gmx::test::anonymous_namespace{leapfrog.cpp}::LeapFrogTest::testAgainstReferenceData ( const LeapFrogTestData &  testData)
inline

Test the numerical integrator against pre-computed reference values.

Parameters
[in]testDataTest data object

The documentation for this class was generated from the following file: