Introduce readXvgData to read xvg data into std::vector
commit5ecaf44f86c6a1600c1460c80690686d9a737fed
authorChristian Blau <cblau@gwdg.de>
Fri, 7 Feb 2020 13:47:50 +0000 (7 14:47 +0100)
committerJoe Jordan <e.jjordan12@gmail.com>
Wed, 12 Feb 2020 10:36:45 +0000 (12 11:36 +0100)
tree1da8763bb91fdb136eedf665b940ca54965c66cc
parentad2284daa81928ef98dea288b1d418b8fb6e26d3
Introduce readXvgData to read xvg data into std::vector

This allows for modernization of table functions, demonstrated
here with read_tables, as well as potentially any other function
that needs to read in xvg data. The legacy read_xvg is now
implemented in terms of readXvgData. There is already a test for
table functions and this change now adds tests for reading in
xvg data.

Change-Id: Iac0b13d7db15f04a8b0b464df9fa136ff4b2a213
src/gromacs/fileio/tests/CMakeLists.txt
src/gromacs/fileio/tests/xvgio.cpp [new file with mode: 0644]
src/gromacs/fileio/xvgr.cpp
src/gromacs/fileio/xvgr.h
src/gromacs/mdspan/extensions.h
src/gromacs/tables/forcetable.cpp