double spacing,
std::vector<real> *yfghTableData)
{
- int endIndex = range.second / spacing + 2;
+ int endIndex = static_cast<int>(range.second / spacing + 2);
yfghTableData->resize(4*endIndex);
double spacing,
std::vector<real> *yfghTableData)
{
- int endIndex = range.second / spacing + 2;
+ int endIndex = static_cast<int>(range.second / spacing + 2);
std::vector<double> tmpFunction(endIndex);
std::vector<double> tmpDerivative(endIndex);
{
double x = i * spacing;
double xtab = x / inputSpacing;
- int index = xtab;
+ int index = static_cast<int>(xtab);
double eps = xtab - index;
if (range.first > 0 && i == 0)
double minQuotient = GMX_REAL_MAX;
// loop over all functions to find smallest spacing
- for (auto thisFuncInput : analyticalInputList)
+ for (const auto &thisFuncInput : analyticalInputList)
{
try
{
// combine them into a multiplexed table function.
std::size_t funcIndex = 0;
- for (auto thisFuncInput : analyticalInputList)
+ for (const auto &thisFuncInput : analyticalInputList)
{
try
{