Gromacs  2020.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Typedefs | Functions | Variables
gmx::test::anonymous_namespace{simulationdatabase.cpp} Namespace Reference

Typedefs

using MdpFileValues = std::map< std::string, DatabaseEntry >
 Helper typedef.
 

Functions

MdpFieldValues prepareDefaultMdpFieldValues (const std::string &simulationName)
 Prepare default .mdp values. More...
 

Variables

const MdpFileValues mdpFileValueDatabase_g
 Database of .mdp strings that supports prepareDefaultMdpValues()
 

Function Documentation

MdpFieldValues gmx::test::anonymous_namespace{simulationdatabase.cpp}::prepareDefaultMdpFieldValues ( const std::string &  simulationName)

Prepare default .mdp values.

Insert suitable .mdp defaults, so that mdpFileValueDatabase_g does not need to specify repetitive values. This works because std::map.insert() does not over-write elements that already exist.

Todo:
ideally some of these default values should be the same as grompp uses, and sourced from the same place, but that code is a bit of a jungle until we transition to using IMdpOptions more.
Exceptions
std::bad_allocif out of memory std::out_of_range if simulationName is not in the database

Note: Any mdp options that are not added here cannot be used