Support frames with atom subsets in selections
commit4239f345f25712daec281a04681b380a6f16389c
authorTeemu Murtola <teemu.murtola@gmail.com>
Sat, 28 Nov 2015 04:55:52 +0000 (28 06:55 +0200)
committerTeemu Murtola <teemu.murtola@gmail.com>
Sun, 10 Jan 2016 13:33:53 +0000 (10 15:33 +0200)
tree53f0d3c17c8d8560146a0a580d1872a5162276f9
parent12c07b72ae96df91681320cd6312f89e864fdf8f
Support frames with atom subsets in selections

- Instead of just computing the highest atom index required for
  evaluating the selections, compute all the atom indices.
- Use these to check that the input frame actually contains the
  necessary atoms.
- Add basic tests for one positive and a few negative cases.

Part of #1861.

Change-Id: If4c2d031f638f56d81ca4c7844dffa242f863af8
src/gromacs/selection/compiler.cpp
src/gromacs/selection/indexutil.cpp
src/gromacs/selection/indexutil.h
src/gromacs/selection/poscalc.cpp
src/gromacs/selection/poscalc.h
src/gromacs/selection/selectioncollection-impl.h
src/gromacs/selection/selectioncollection.cpp
src/gromacs/selection/tests/indexutil.cpp
src/gromacs/selection/tests/refdata/SelectionCollectionDataTest_HandlesFramesWithAtomSubsets.xml [new file with mode: 0644]
src/gromacs/selection/tests/selectioncollection.cpp