Gromacs
2025-dev-20240910-a7e2421
|
Classes | |
struct | SplineData |
A structure for all the spline data which depends in size both on the PME order and atom count. More... | |
struct | TestSystem |
A structure for the input atom data, which depends in size on atom count. More... | |
class | GatherTest |
Test fixture. More... | |
class | GatherTestBody |
Test case whose body checks that gather works. More... | |
Typedefs | |
typedef std::tuple < std::string, int, IVec, std::string, std::string, int > | GatherInputParameters |
Convenience typedef of the test input parameters. More... | |
Functions | |
SplineData | getSplineData (const int pmeOrder, const int atomCount) |
Return synthetic spline data to gather. | |
std::string | nameOfTest (const testing::TestParamInfo< GatherInputParameters > &info) |
Help GoogleTest name our test cases. More... | |
std::string | fullNameOfTest (const testing::TestParamInfo< GatherInputParameters > &info, const std::string &testName) |
Help GoogleTest name our test cases. More... | |
Variables | |
std::vector< IVec > const | c_inputGridSizes { IVec{ 16, 12, 14 }, IVec{ 13, 15, 11 } } |
A couple of valid inputs for grid sizes. | |
const std::map< std::string, SparseRealGridValuesInput > | c_inputGrids |
Two input grids - only non-zero values have to be listed. More... | |
std::vector< RVec > const | c_sampleForcesFull |
Input forces for reduction. More... | |
std::map< std::string, TestSystem > | c_testSystems |
Test systems to use. More... | |
const auto | c_inputBoxNames = ::testing::Values("rect", "tric") |
Moved out from instantiations for readability. | |
const auto | c_inputGridNames = ::testing::Values("first", "second") |
Moved out from instantiations for readability. | |
const auto | c_inputTestSystemNames = ::testing::Values("1 atom", "2 atoms", "13 atoms") |
Moved out from instantiations for readability. | |
typedef std::tuple<std::string, int, IVec, std::string, std::string, int> gmx::test::anonymous_namespace{pmegathertest.cpp}::GatherInputParameters |
Convenience typedef of the test input parameters.
Parameters:
std::string gmx::test::anonymous_namespace{pmegathertest.cpp}::fullNameOfTest | ( | const testing::TestParamInfo< GatherInputParameters > & | info, |
const std::string & | testName | ||
) |
Help GoogleTest name our test cases.
This is intended to work like a custom test-naming function that would be passed as the fourth argument to INSTANTIATE_TEST_SUITE_P, except that we are not using that macro for these tests. All components of GatherInputParameters affect this name.
std::string gmx::test::anonymous_namespace{pmegathertest.cpp}::nameOfTest | ( | const testing::TestParamInfo< GatherInputParameters > & | info | ) |
Help GoogleTest name our test cases.
This is intended to work like a custom test-naming function that would be passed as the fourth argument to INSTANTIATE_TEST_SUITE_P, except that we are not using that macro for these tests. Only the components of GatherInputParameters that affect the reference data values affect this name. Hardware context does not affect this name.
const std::map<std::string, SparseRealGridValuesInput> gmx::test::anonymous_namespace{pmegathertest.cpp}::c_inputGrids |
Two input grids - only non-zero values have to be listed.
std::vector<RVec> const gmx::test::anonymous_namespace{pmegathertest.cpp}::c_sampleForcesFull |
Input forces for reduction.
std::map<std::string, TestSystem> gmx::test::anonymous_namespace{pmegathertest.cpp}::c_testSystems |
Test systems to use.
The coordinates are intentionally bogus in this test - only the size matters; the gridline indices are fed directly as inputs