Add one element to state rvec arrays
commit4684e7a102ed87e04d8ed72ce5c92a7c291fb05b
authorBerk Hess <hess@kth.se>
Fri, 11 Dec 2015 13:37:09 +0000 (11 14:37 +0100)
committerMark Abraham <mark.j.abraham@gmail.com>
Wed, 16 Dec 2015 11:51:20 +0000 (16 12:51 +0100)
treea6d970f11269ceeb805befea75abe68dd6c57ef1
parent0b87ff462e54091898737039cb7890666b82cc1b
Add one element to state rvec arrays

Because the next generation SIMD interface can use (unaligned) 4-wide
SIMD loads to load rvecs from the state, we need one extra element
allocated at the end of the arrays.

Note: This is a temporary, fragile code that should be replaced.
One can easily forgot to allocate an extra element in state and
someone could pass an rvec pointer not from state to one of the
routines that uses SIMD loads.

Change-Id: Ib359355909c3e380ebd36a3ec2a3015a3cb6c9b8
src/gromacs/domdec/domdec.cpp
src/gromacs/mdlib/md_support.cpp
src/gromacs/mdlib/minimize.cpp
src/gromacs/mdlib/sim_util.cpp
src/gromacs/mdlib/update.cpp
src/gromacs/mdtypes/state.cpp