Move hardcoded PME grid indexing constants into header
commit87bc8c50b29441b37d9d8d839298746ed459ad08
authorAleksei Iupinov <a.yupinov@gmail.com>
Thu, 10 Nov 2016 12:34:46 +0000 (10 13:34 +0100)
committerDavid van der Spoel <davidvanderspoel@gmail.com>
Mon, 21 Nov 2016 10:29:33 +0000 (21 11:29 +0100)
tree2c141b3b162555d60f72dbc9f35acc519de26fe2
parent10ad6f53f60708bc3c2f030c5b7be1867f12c304
Move hardcoded PME grid indexing constants into header

Moved the table size factor of 5 to pme-grid.h as a constexpr.
Also changed the spread code that use the table to use a constexpr
for the offset, which in turn determines the table size.

Change-Id: Ief524e9510c0406f60973800f2e110c361128ef5
src/gromacs/ewald/pme-grid.cpp
src/gromacs/ewald/pme-grid.h
src/gromacs/ewald/pme-spread.cpp
src/gromacs/ewald/pme.cpp