X-Git-Url: http://biod.pnpi.spb.ru/gitweb/?a=blobdiff_plain;f=src%2Fgromacs%2Fgmxpreprocess%2Freadir.h;h=fef3384e11903f9541b9f477713c5a736b9fa132;hb=cd9941cd2185866809dfa6c3f953d56bf373b4b7;hp=9b7aa8194d4ef00c7d30cfce1afc024ea7bd466d;hpb=d0593a58454b855259dff740cb376a3d43f6c620;p=alexxy%2Fgromacs.git diff --git a/src/gromacs/gmxpreprocess/readir.h b/src/gromacs/gmxpreprocess/readir.h index 9b7aa8194d..fef3384e11 100644 --- a/src/gromacs/gmxpreprocess/readir.h +++ b/src/gromacs/gmxpreprocess/readir.h @@ -112,16 +112,18 @@ void init_inputrec_strings(); /*! \brief Clean up object that holds strings parsed from an .mdp file */ void done_inputrec_strings(); +/*! \brief Performs all validation on \p ir that can be done without index groups and topology + * + * Any errors, warnings or notes are added to \p wi + */ void check_ir(const char* mdparin, const gmx::MDModulesNotifiers& mdModulesNotifiers, t_inputrec* ir, t_gromppopts* opts, warninp_t wi); -/* Validate inputrec data. - * Fatal errors will be added to nerror. - */ -int search_string(const char* s, int ng, char* gn[]); -/* Returns the index of string s in the index groups */ + +//! Returns the index of string \p s in \p gn or exit with a verbose fatal error when not found +int search_string(const char* s, int ng, char* const gn[]); void double_check(t_inputrec* ir, matrix box, bool bHasNormalConstraints, bool bHasAnyConstraints, warninp_t wi); /* Do more checks */