#include "gromacs/gmxpreprocess/readir.h"
#include "gromacs/gmxpreprocess/topdirs.h"
#include "gromacs/gmxpreprocess/toputil.h"
+#include "gromacs/math/functions.h"
#include "gromacs/mdtypes/md_enums.h"
#include "gromacs/topology/ifunc.h"
#include "gromacs/topology/symtab.h"
{
sprintf(errbuf, "%s table number can not be perturbed %d!=%d",
interaction_function[ftype].longname,
- static_cast<int>(param.c[0]+0.5), static_cast<int>(param.c[2]+0.5));
+ gmx::roundToInt(param.c[0]), gmx::roundToInt(param.c[2]));
warning_error_and_exit(wi, errbuf, FARGS);
}