Gromacs  2025-dev-20240913-b871546
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Typedefs | Enumerations | Variables
gmx::test::anonymous_namespace{pmebsplinetest.cpp} Namespace Reference

Classes

class  PmeBSplineModuliTest
 Test fixture for testing PME B-spline moduli creation. More...
 

Typedefs

typedef std::tuple< IVec, int,
ModuliType
BSplineModuliInputParameters
 Convenience typedef of input parameters - grid dimensions, PME interpolation order, moduli type.
 
using PmeBSplineModuliFailureTest = PmeBSplineModuliTest
 Failure test alias.
 
using PmeBSplineModuliCorrectnessTest = PmeBSplineModuliTest
 Correctness test alias.
 

Enumerations

enum  ModuliType { PME, P3M }
 Moduli algorithm type.
 

Variables

const int sanePmeOrder = 4
 Sane interpolation order.
 
const IVec saneGridSize = { 32, 25, 47 }
 Sane grid size.
 
std::vector
< BSplineModuliInputParameters >
const 
invalidInputs
 Hand-picked invalid input for the exception tests. More...
 
std::vector< IVec > const sampleGridSizes { IVec{ 64, 32, 64 }, IVec{ 57, 84, 29 } }
 A couple of valid inputs for grid sizes. It is good to test both even and odd dimensions.
 

Variable Documentation

std::vector<BSplineModuliInputParameters> const gmx::test::anonymous_namespace{pmebsplinetest.cpp}::invalidInputs
Initial value:
{
BSplineModuliInputParameters{ IVec{ -1, 10, 10 }, sanePmeOrder, ModuliType::P3M },
BSplineModuliInputParameters{ IVec{ 40, 0, 20 }, sanePmeOrder, ModuliType::P3M },
BSplineModuliInputParameters{ IVec{ 64, 2, 64 }, sanePmeOrder, ModuliType::PME },
8 + 1,
ModuliType::P3M
},
BSplineModuliInputParameters{ saneGridSize, 12 + 1, ModuliType::PME },
}
std::tuple< IVec, int, ModuliType > BSplineModuliInputParameters
Convenience typedef of input parameters - grid dimensions, PME interpolation order, moduli type.
Definition: pmebsplinetest.cpp:80
const IVec saneGridSize
Sane grid size.
Definition: pmebsplinetest.cpp:152
BasicVector< int > IVec
Shorthand for C++ ivec-equivalent type.
Definition: vectypes.h:344
const int sanePmeOrder
Sane interpolation order.
Definition: pmebsplinetest.cpp:150

Hand-picked invalid input for the exception tests.