Gromacs  2026.0-dev-20251109-f20ba35
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Protected Attributes
gmx::test::NNPotTopologyPreprocessorTest Class Reference

Inherits TestWithParam< NNPotEmbedding >.

+ Collaboration diagram for gmx::test::NNPotTopologyPreprocessorTest:

Description

Test fixture for NNPotTopologyPreprocessor tests.

Provides a temporary file manager and a gmx_mtop_t struct for testing.

Public Member Functions

NNPotOptions buildDefaultOptions (const std::vector< int > &nnpAtomIndices, WarningHandler *wi)
 Helper function to create an NNPotOptions object.
 
NNPotOptions buildOptionsWithValues (const std::vector< int > &nnpAtomIndices, WarningHandler *wi, const std::map< std::string, std::string > &additionalValues)
 
void expectLogMessage (const char *msg)
 Helper function to expect a log message.
 

Static Public Member Functions

static std::unique_ptr
< gmx_mtop_t > 
makeMtopFromFile (const std::string &simulationName, const std::string &mdpContent)
 Generates tpr file from *.top and *.gro existing in the simulation database directory and custom mdpContent and loads gmx_mtop_t from it. More...
 
static KeyValueTreeObject nnpotBuildMdpValues (const std::map< std::string, std::string > &additionalValues={})
 Generates a default mdp values for NNPotOptions.
 
static IndexGroupsAndNames indexGroupsAndNames (const std::vector< int > &nnpAtomIndices)
 Creates an IndexGroupsAndNames object with the given atom indices.
 

Protected Attributes

LoggerTestHelper logHelper_
 

Member Function Documentation

static std::unique_ptr<gmx_mtop_t> gmx::test::NNPotTopologyPreprocessorTest::makeMtopFromFile ( const std::string &  simulationName,
const std::string &  mdpContent 
)
inlinestatic

Generates tpr file from *.top and *.gro existing in the simulation database directory and custom mdpContent and loads gmx_mtop_t from it.

Parameters
[in]simulationNameName of the simulation database directory
[in]mdpContentContent of the mdp file

The documentation for this class was generated from the following file: