Gromacs
2024.3
|
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. | |
const char * | enumValueToString (PressureMatrixType enumValue) |
Helper for describing tests. | |
const char * | enumValueToStringForTestName (const BoxShape enumValue) |
Version of enumValueToString with abbreviated names. | |
std::string | nameOfTest (const testing::TestParamInfo< ParrinelloRahmanTestParameters > &info) |
Help GoogleTest name our 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 | |
const EnumerationArray < PressureMatrixType, Matrix3x3 > | c_pressureMatrices |
Some matrices of simulation box pressure. 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.