multidimensional array - bugfix swap
commitc7dea4e66590d91b391673b38f361d46614bd09d
authorChristian Blau <cblau@gwdg.de>
Fri, 1 Feb 2019 12:48:47 +0000 (1 13:48 +0100)
committerErik Lindahl <erik.lindahl@gmail.com>
Mon, 4 Feb 2019 08:56:26 +0000 (4 09:56 +0100)
treed979449bf41a2ccfa421f9d9491ea1728cd84d0d
parent809f18ba420192b531f1ca0c4797ae14367d8a05
multidimensional array - bugfix swap

The swap operation for the multidimensional array was wrongly
implemented, because the views were only swapped without resetting them
onto the new data. The tests have been updated to better capture the
swapping behaviour.

Change-Id: Ic800a3ec0e059c8fcdfb4e5528747ca0c70afb82
src/gromacs/math/multidimarray.h
src/gromacs/math/tests/multidimarray.cpp