[gmx-developers] Verlet-Tables integration
erik.lindahl at gmail.com
Fri Nov 16 20:16:49 CET 2018
On Fri, Nov 16, 2018 at 12:59 PM David van der Spoel <spoel at xray.bmc.uu.se>
> Den 2018-11-14 kl. 15:04, skrev Erik Lindahl:
> > ... and for the low-level table code we (or somebody else :-) still need
> > to sit down and work through the math how we should specify tolerances
> > (that are used to set spacing) for arbitrary cases where the tabulated
> > function or its derivative has a zero-value in the relevant range.
> Not sure I understand the question? The spacing is an absolute quantity,
> right? Are you worried about the relative error which may go up in case
> force or energies get close to zero? Does the relative error influence
> the physics?
The new table classes use either analytical C++ functions or high-density
input data, but then we start by calculating exactly what the largest
spacing is that will fulfill the requested tolerance on both force and
potential over the entire definition range specified. If the input data is
not dense enough to achieve this, the constructor will throw.
This is quite nice since we'll *know* the data is good enough, rather than
just pray you picked a spacing that was good enough. In some cases (e.g.
short distances, exponentials, etc.) the previous spacing was not adequate,
while in others we can have sparser tables that will be faster.
However, when we actually test the relative table tolerance over the entire
range, we run into problems when the reference function has a zero there.
Hopefully not rocket science to fix, but since we finally have a general
table class that can be used for arbitrary tables we should think about and
design this properly, rather than just doing a hack that works for
nonbonded tables, but might fail for other stuff.
> Speaking of wish-lists, it would be great to get rid of the invsqrt in
> innerloops to allow zero distances as well.
That would probably have a clear performance penalty on most platforms, so
it's unfortunately not likely to happen just to support less common
Erik Lindahl <erik.lindahl at dbb.su.se>
Professor of Biophysics, Dept. Biochemistry & Biophysics, Stockholm
Science for Life Laboratory, Box 1031, 17121 Solna, Sweden
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the gromacs.org_gmx-developers