Densityfitting write int64_t indices instead of gmx::index
authorChristian Blau <cblau@gwdg.de>
Wed, 11 Sep 2019 06:50:42 +0000 (08:50 +0200)
committerChristian Blau <cblau@gwdg.de>
Wed, 11 Sep 2019 10:17:49 +0000 (12:17 +0200)
commitc6a5224c9c19f30f20fb692b7fc6a4c6fe46976f
tree64a635bf3c36a7b7b99a293f2f3de5fa9c0dcd3f
parentb7b078e243ebaa0647ddfeb1032368f109b7090a
Densityfitting write int64_t indices instead of gmx::index

When serializing atom indices to a key-value-tree that is subsequently
written to file, the type of the indices needs to be independent of
gmx::index (aka ptrdiff_t) type definition.

This patch introduces this behaviour.

refs #2282

Change-Id: I1384158204354e2267674c266f91c133a01bc5f7
src/gromacs/applied_forces/densityfittingoptions.cpp
src/gromacs/applied_forces/tests/densityfittingoptions.cpp