* 12 flops per outer iteration
* 150 flops per inner iteration
*/
+#pragma omp atomic
inc_nrnb(nrnb, eNR_NBKERNEL_FREE_ENERGY, nlist->nri*12 + nlist->jindex[n]*150);
}
}
if (flags & GMX_PME_SOLVE)
{
- int loop_count;
/* solve in k-space for our local cells */
#pragma omp parallel num_threads(pme->nthread) private(thread)
{
+ int loop_count;
thread = gmx_omp_get_thread_num();
if (thread == 0)
{
double dval = std::strtod(ptr, &endptr);
if (errno == ERANGE
|| dval * factor_ < -std::numeric_limits<float>::max()
- || dval * factor_ > -std::numeric_limits<float>::max())
+ || dval * factor_ > std::numeric_limits<float>::max())
{
GMX_THROW(InvalidInputError("Invalid value: '" + value
+ "'; it causes an overflow/underflow"));
* or because of n being too small.
* Since both cases occur very infrequently, we can check for EOF.
*/
- if (!gmx_eof(stream))
+ if (!feof(stream))
{
gmx_fatal(FARGS, "An input file contains a line longer than %d characters, while the buffer passed to fgets2 has size %d. The line starts with: '%20.20s'", n, n, line);
}