Gromacs  2026.0-dev-20241121-c76fa1e
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Typedefs | Enumerations | Functions | Variables
anonymous_namespace{domain_decomposition.cpp} Namespace Reference

Classes

class  DomDecSpecialCasesTest
 Test fixture for domain decomposition special cases. More...
 

Typedefs

using NonbondedFlavor = OffloadFlavor
 
using UpdateFlavor = OffloadFlavor
 
using PmeFlavor = OffloadFlavor
 
using MdpFlavor = std::tuple< ElectrostaticsFlavor, CouplingFlavor >
 Tuple containing parameters for MDP/TPR file generation.
 
using RuntimeFlavor = std::tuple< NonbondedFlavor, PmeFlavor, UpdateFlavor, SeparatePmeRankFlavor >
 Tuple containing parameters for mdrun command line.
 
using DomDecSpecialCasesTestParameters = std::tuple< MdpFlavor, RuntimeFlavor >
 Parameters for parametrized test fixture.
 

Enumerations

enum  ElectrostaticsFlavor : int { ReactionField, Pme, Count }
 
enum  CouplingFlavor : int { No, TemperatureAndPressure, Count }
 
enum  OffloadFlavor : int { Cpu, Gpu, Count }
 
enum  SeparatePmeRankFlavor : int { None = 0, One = 1, Two = 2, Count }
 

Functions

const char * enumValueToString (const ElectrostaticsFlavor enumValue)
 
const char * enumValueToString (const CouplingFlavor enumValue)
 
const char * enumValueToString (const OffloadFlavor enumValue)
 
std::optional< std::string > reasonsTestIsInvalid (MdpFlavor mdpFlavor, RuntimeFlavor runtimeFlavor, bool gmx_unused haveCompatibleDevices)
 Verify whether the test configuration is valid and worth running.
 
std::string nameOfMdpFlavor (const MdpFlavor mdpFlavor)
 
std::string nameOfRuntimeFlavor (const RuntimeFlavor runtimeFlavor)
 
std::string buildMdpInputFileContent (MdpFlavor mdpFlavor)
 Generate the contents of the MDP file.
 
gmx::test::CommandLine buildMdrunCommandLine (RuntimeFlavor runtimeFlavor)
 Generate the mdrun command line.
 

Variables

const
gmx::test::NameOfTestFromTuple
< DomDecSpecialCasesTestParameters
sc_testNamer
 Tuple of formatters to name the parameterized test cases. More...
 
constexpr std::array
< MdpFlavor, 4 > 
sc_mdpFlavors
 
constexpr std::array
< OffloadFlavor, 1 > 
sc_offloadFlavors { OffloadFlavor::Cpu }
 

Variable Documentation

constexpr std::array<MdpFlavor, 4> anonymous_namespace{domain_decomposition.cpp}::sc_mdpFlavors
Initial value:
= {
std::make_tuple(ElectrostaticsFlavor::ReactionField, CouplingFlavor::No),
std::make_tuple(ElectrostaticsFlavor::ReactionField, CouplingFlavor::TemperatureAndPressure),
std::make_tuple(ElectrostaticsFlavor::Pme, CouplingFlavor::No),
std::make_tuple(ElectrostaticsFlavor::Pme, CouplingFlavor::TemperatureAndPressure),
}
const gmx::test::NameOfTestFromTuple<DomDecSpecialCasesTestParameters> anonymous_namespace{domain_decomposition.cpp}::sc_testNamer
Initial value:
{
std::make_tuple(nameOfMdpFlavor, nameOfRuntimeFlavor)
}

Tuple of formatters to name the parameterized test cases.