Gromacs  2027.0-dev-20261118-bc88ada
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Enumerations | Functions | Variables
gmx::anonymous_namespace{readir.cpp} Namespace Reference

Enumerations

enum  GroupCoverage { GroupCoverage::All, AllGenerateRest, Partial, OneGroup }
 How to treat coverage of the whole system for a set of atom groupsx. More...
 

Functions

void getSimTemps (int ntemps, t_simtemp *simtemp, ArrayRef< double > temperature_lambdas)
 
void _low_check (bool b, const char *s, WarningHandler *wi)
 
void check_nst (const char *desc_nst, int nst, const char *desc_p, int *p, WarningHandler *wi)
 
void process_interaction_modifier (InteractionModifiers *eintmod)
 Convert legacy mdp entries to modern ones.
 
std::vector< real > parse_n_real (const std::string &str, int *n, WarningHandler *wi)
 
void do_fep_params (t_inputrec *ir, ArrayRef< std::string > fep_lambda, const char lambdaWeights[STRLEN], const char lambdaCounts[STRLEN], const char wlHistogramCounts[STRLEN], WarningHandler *wi)
 
void do_simtemp_params (t_inputrec *ir)
 
template<typename T >
void convertInts (WarningHandler *wi, ArrayRef< const std::string > inputs, const char *name, T *outputs)
 
void convertReals (WarningHandler *wi, ArrayRef< const std::string > inputs, const char *name, real *outputs)
 
std::vector< RVec > convertGroupRvecs (WarningHandler *wi, ArrayRef< const std::string > inputs, const char *name, const int numGroupsRequired)
 
void do_wall_params (t_inputrec *ir, const char *wall_atomtype, const char *wall_density, t_gromppopts *opts, WarningHandler *wi)
 
void add_wall_energrps (SimulationGroups *groups, int nwall, t_symtab *symtab)
 
void read_expandedparams (std::vector< t_inpfile > *inp, t_expanded *expand, WarningHandler *wi)
 
bool couple_lambda_has_vdw_on (int couple_lambda_value)
 Return whether an end state with the given coupling-lambda value describes fully-interacting VDW. More...
 
void atomGroupRangeValidation (const int natoms, ArrayRef< const int > particleIndices)
 
bool do_numbering (const int natoms, SimulationGroups *groups, ArrayRef< const std::string > groupsFromMdpFile, ArrayRef< const IndexGroup > indexGroups, const SimulationAtomGroupType gtype, const int restnm, const GroupCoverage coverage, const bool bVerbose, WarningHandler *wi)
 Creates the groups of atom indices for group type gtype. More...
 
void calc_nrdf (const gmx_mtop_t *mtop, t_inputrec *ir, ArrayRef< const std::string > gnames)
 
bool do_egp_flag (t_inputrec *ir, SimulationGroups *groups, const char *option, const char *val, int flag)
 
void make_swap_groups (t_swapcoords *swap, ArrayRef< const IndexGroup > indexGroups)
 
void make_IMD_group (t_IMD *IMDgroup, const char *IMDgname, ArrayRef< const IndexGroup > indexGroups)
 
void checkAndUpdateVcmFreezeGroupConsistency (SimulationGroups *groups, const int numAtoms, const t_grpopts &opts, WarningHandler *wi)
 
void processEnsembleTemperature (t_inputrec *ir, const bool allAtomsCoupled, WarningHandler *wi)
 
void check_disre (const gmx_mtop_t &mtop)
 
BasicVector< bool > haveAbsoluteReference (const t_inputrec &ir)
 Returns whether dimensions have an absolute reference due to walls, pbc or freezing.
 
BasicVector< bool > havePositionRestraints (const gmx_mtop_t &sys)
 Returns whether position restraints are used for dimensions.
 
void check_combination_rule_differences (const gmx_mtop_t &mtop, int state, bool *bC6ParametersWorkWithGeometricRules, bool *bC6ParametersWorkWithLBRules, bool *bLBRulesPossible)
 
void check_combination_rules (const t_inputrec &ir, const gmx_mtop_t &mtop, WarningHandler *wi)
 
bool allTrue (const BasicVector< bool > &boolVector)
 
void checksForFepLambaLargerOne (const t_inputrec &ir, const gmx_mtop_t &mtop, WarningHandler *wi)
 

Variables

const char *const constraints [eshNR+1]
 
const char *const couple_lam [ecouplamNR+1] = { "vdw-q", "vdw", "q", "none", nullptr }
 

Enumeration Type Documentation

enum gmx::anonymous_namespace{readir.cpp}::GroupCoverage
strong

How to treat coverage of the whole system for a set of atom groupsx.

Enumerator
All 

All particles have to be a member of a group.

Function Documentation

bool gmx::anonymous_namespace{readir.cpp}::couple_lambda_has_vdw_on ( int  couple_lambda_value)

Return whether an end state with the given coupling-lambda value describes fully-interacting VDW.

Parameters
[in]couple_lambda_valueEnumeration ecouplam value describing the end state
Returns
Whether VDW is on (i.e. the user chose vdw or vdw-q in the .mdp file)
bool gmx::anonymous_namespace{readir.cpp}::do_numbering ( const int  natoms,
SimulationGroups *  groups,
ArrayRef< const std::string >  groupsFromMdpFile,
ArrayRef< const IndexGroup >  indexGroups,
const SimulationAtomGroupType  gtype,
const int  restnm,
const GroupCoverage  coverage,
const bool  bVerbose,
WarningHandler *  wi 
)

Creates the groups of atom indices for group type gtype.

Parameters
[in]natomsThe total number of atoms in the system
[in,out]groupsIndex gtype in this list of list of groups will be set
[in]groupsFromMdpFileThe list of group names set for gtype in the mdp file
[in]indexGroupsThe list of all available index groups
[in]gtypeThe group type to creates groups for
[in]restnmThe index of rest group name in gnames
[in]coverageHow to treat coverage of all atoms in the system
[in]bVerboseWhether to print when we make a rest group
[in,out]wiList of warnings
Returns
whether all atoms have been assigned to a group

Variable Documentation

const char* const gmx::anonymous_namespace{readir.cpp}::constraints[eshNR+1]
Initial value:
= { "none", "h-bonds", "all-bonds",
"h-angles", "all-angles", nullptr }