The nbnxn Ewald table could got the spacing dx passed as a real.
Changing this to double improves the accuracy of the single precision
table by two orders of magnitude, because rounding errors are avoided.
Change-Id: I11b6c27bd3f4e306c412da8f01761b03dc337ce7
#endif
GMX_LIBMD_EXPORT
-void table_spline3_fill_ewald_lr(real *table_F,
- real *table_V,
- real *table_FDV0,
- int ntab,
- real dx,
- real beta);
+void table_spline3_fill_ewald_lr(real *table_F,
+ real *table_V,
+ real *table_FDV0,
+ int ntab,
+ double dx,
+ real beta);
/* Fill tables of ntab points with spacing dr with the ewald long-range
* (mesh) force.
* There are three separate tables with format FDV0, F, and V.
}
}
-void table_spline3_fill_ewald_lr(real *table_f,
- real *table_v,
- real *table_fdv0,
- int ntab,
- real dx,
- real beta)
+void table_spline3_fill_ewald_lr(real *table_f,
+ real *table_v,
+ real *table_fdv0,
+ int ntab,
+ double dx,
+ real beta)
{
real tab_max;
int i, i_inrange;