Gromacs
2025-dev-20240913-b871546
|
Classes | |
struct | Matrix3x3ToString |
Helper functor for naming tests. More... | |
Typedefs | |
using | ParrinelloRahmanTestParameters = std::tuple< PressureCouplingOptions, PressureMatrixType, BoxShape, Matrix3x3, Matrix3x3 > |
Convenience typedef of the test input parameters. More... | |
using | ParrRahmTest = ::testing::TestWithParam< ParrinelloRahmanTestParameters > |
Test fixture - abbreviated ParrinelloRahman to ParrRahm for shorter refdata filenames. | |
Enumerations | |
enum | PressureMatrixType { UniformDiagonal, PressureMatrixType::PartlyUniformDiagonal, PressureMatrixType::Diagonal, PressureMatrixType::General, PressureMatrixType::Extreme, PressureMatrixType::Count } |
Some kinds of matrices of simulation box pressure. More... | |
enum | BoxShape : int { Cubic, Rectilinear, RhombicDodecahedronXYSquare, RhombicDodecahedronXYHexagon, TruncatedOctahedron, Other, Count } |
Simulation box types. | |
Functions | |
void | isAlmostDiagonalMatrix (const char *name, const Matrix3x3 &m) |
GoogleTest expectations about whether matrices are diagonal or not. | |
std::string | pressureCouplingOptionsToString (const PressureCouplingOptions options) |
Helper function for naming tests. | |
template<BoxShape boxShape> | |
Matrix3x3 | makeBox (real spacing) |
Template for box-making function. | |
template<> | |
Matrix3x3 | makeBox< BoxShape::Cubic > (real spacing) |
Template specialization to make a cubic box. | |
template<> | |
Matrix3x3 | makeBox< BoxShape::Rectilinear > (real spacing) |
Template specialization to make a rectilinear box. | |
template<> | |
Matrix3x3 | makeBox< BoxShape::RhombicDodecahedronXYSquare > (real spacing) |
Template specialization to make a rhombic dodecahedral box where the XY face is a square. | |
template<> | |
Matrix3x3 | makeBox< BoxShape::RhombicDodecahedronXYHexagon > (real spacing) |
Template specialization to make a rhombic dodecahedral box where the XY face is a hexagon. | |
template<> | |
Matrix3x3 | makeBox< BoxShape::TruncatedOctahedron > (real spacing) |
Template specialization to make a truncated octahedral box. | |
template<> | |
Matrix3x3 | makeBox< BoxShape::Other > (real spacing) |
Template specialization to make an arbitrary conformant box. | |
template<BoxShape boxShape> | |
std::vector< Matrix3x3 > | makeBoxes (std::initializer_list< real > boxSizes) |
Make a vector of boxes whose type is boxShape and leading dimension one of the boxSizes . | |
Variables | |
constexpr gmx::EnumerationArray < PressureMatrixType, const char * > | sc_pressureMatrixTypeNames |
Helper array for describing tests. More... | |
const EnumerationArray < PressureMatrixType, Matrix3x3 > | c_pressureMatrices |
Some matrices of simulation box pressure. More... | |
constexpr gmx::EnumerationArray < BoxShape, const char * > | sc_boxShapeNames |
const NameOfTestFromTuple < ParrinelloRahmanTestParameters > | sc_testNamer |
Tuple of formatters to name the parameterized test cases. More... | |
const EnumerationArray < BoxShape, std::vector < Matrix3x3 > > | c_boxVectors |
Sets of box vectors to use in tests. More... | |
const EnumerationArray < BoxShape, std::vector < Matrix3x3 > > | c_boxVelocities |
Sets of box velocity vectors to use in tests. More... | |
const std::vector < PressureCouplingOptions > | c_options |
Sets of pressure-coupling MDP options to use in tests. More... | |
using gmx::test::anonymous_namespace{parrinellorahman.cpp}::ParrinelloRahmanTestParameters = typedef std::tuple<PressureCouplingOptions, PressureMatrixType, BoxShape, Matrix3x3, Matrix3x3> |
Convenience typedef of the test input parameters.
Parameters:
|
strong |
Some kinds of matrices of simulation box pressure.
The symmetric ones are useful for testing e.g. that anisotropic coupling preserves symmetry if the inputs are symmetric.
const EnumerationArray<BoxShape, std::vector<Matrix3x3> > gmx::test::anonymous_namespace{parrinellorahman.cpp}::c_boxVectors |
Sets of box vectors to use in tests.
const EnumerationArray<BoxShape, std::vector<Matrix3x3> > gmx::test::anonymous_namespace{parrinellorahman.cpp}::c_boxVelocities |
Sets of box velocity vectors to use in tests.
const std::vector<PressureCouplingOptions> gmx::test::anonymous_namespace{parrinellorahman.cpp}::c_options |
Sets of pressure-coupling MDP options to use in tests.
const EnumerationArray<PressureMatrixType, Matrix3x3> gmx::test::anonymous_namespace{parrinellorahman.cpp}::c_pressureMatrices |
Some matrices of simulation box pressure.
constexpr gmx::EnumerationArray<BoxShape, const char*> gmx::test::anonymous_namespace{parrinellorahman.cpp}::sc_boxShapeNames |
constexpr gmx::EnumerationArray<PressureMatrixType, const char*> gmx::test::anonymous_namespace{parrinellorahman.cpp}::sc_pressureMatrixTypeNames |
Helper array for describing tests.
These are used in naming test reference data files, and we have hard limits on file lengths, so we must abbreviate.
const NameOfTestFromTuple<ParrinelloRahmanTestParameters> gmx::test::anonymous_namespace{parrinellorahman.cpp}::sc_testNamer |
Tuple of formatters to name the parameterized test cases.