Gromacs  2024.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Typedefs | Functions | Variables
pmegathertest.cpp File Reference
#include "gmxpre.h"
#include <string>
#include <gmock/gmock.h>
#include "gromacs/mdtypes/inputrec.h"
#include "gromacs/utility/stringutil.h"
#include "testutils/refdata.h"
#include "testutils/test_hardware_environment.h"
#include "testutils/testasserts.h"
#include "testutils/testinit.h"
#include "pmetestcommon.h"
+ Include dependency graph for pmegathertest.cpp:


Implements PME force gathering tests.

Aleksei Iupinov
Mark Abraham


struct  gmx::test::anonymous_namespace{pmegathertest.cpp}::SplineData
 A structure for all the spline data which depends in size both on the PME order and atom count. More...
struct  gmx::test::anonymous_namespace{pmegathertest.cpp}::TestSystem
 A structure for the input atom data, which depends in size on atom count. More...
class  gmx::test::anonymous_namespace{pmegathertest.cpp}::GatherTest
 Test fixture. More...
class  gmx::test::anonymous_namespace{pmegathertest.cpp}::GatherTestBody
 Test case whose body checks that gather works. More...


typedef std::tuple
< std::string, int, IVec,
std::string, std::string, int > 
 Convenience typedef of the test input parameters. More...


SplineData gmx::test::anonymous_namespace{pmegathertest.cpp}::getSplineData (const int pmeOrder, const int atomCount)
 Return synthetic spline data to gather.
std::string gmx::test::anonymous_namespace{pmegathertest.cpp}::nameOfTest (const testing::TestParamInfo< GatherInputParameters > &info)
 Help GoogleTest name our test cases. More...
std::string gmx::test::anonymous_namespace{pmegathertest.cpp}::fullNameOfTest (const testing::TestParamInfo< GatherInputParameters > &info, const std::string &testName)
 Help GoogleTest name our test cases. More...
void gmx::test::registerDynamicalPmeGatherTests (const Range< int > hardwareContextIndexRange)


std::vector< IVec > const gmx::test::anonymous_namespace{pmegathertest.cpp}::c_inputGridSizes { IVec{ 16, 12, 14 }, IVec{ 13, 15, 11 } }
 A couple of valid inputs for grid sizes.
const std::map< std::string,
SparseRealGridValuesInput > 
 Two input grids - only non-zero values have to be listed. More...
std::vector< RVec > const gmx::test::anonymous_namespace{pmegathertest.cpp}::c_sampleForcesFull
 Input forces for reduction. More...
std::map< std::string, TestSystem > gmx::test::anonymous_namespace{pmegathertest.cpp}::c_testSystems
 Test systems to use. More...
const auto gmx::test::anonymous_namespace{pmegathertest.cpp}::c_inputBoxNames = ::testing::Values("rect", "tric")
 Moved out from instantiations for readability.
const auto gmx::test::anonymous_namespace{pmegathertest.cpp}::c_inputGridNames = ::testing::Values("first", "second")
 Moved out from instantiations for readability.
const auto gmx::test::anonymous_namespace{pmegathertest.cpp}::c_inputTestSystemNames = ::testing::Values("1 atom", "2 atoms", "13 atoms")
 Moved out from instantiations for readability.