added support for graphs not starting at 0
authorBerk Hess <hess@kth.se>
Wed, 10 Aug 2011 09:31:30 +0000 (11:31 +0200)
committerBerk Hess <hess@kth.se>
Thu, 26 Apr 2012 18:57:49 +0000 (20:57 +0200)
commit3a41bbfda4819eb8d5129bd7519365c8b7009774
tree25be15ea8632773d00126acba075ef678d633a1c
parentba83dea566f2964f9ab316db88ef5feb0f948784
added support for graphs not starting at 0

It has always been implicitly assumed that graph->start==0.
This assumption would only fail for a topology starting with
single atom molecules followed by multi-atom molecules.
Furthermore, for mk_graph at_start could only be 0, a check
has been added for this, and at_end was not stored.

In t_graph start is now replaced by at_start and end by at_end,
where at_end is end+1, now the first atom not part of the graph.

Change-Id: I0d4c09c90cbba1a7f4a1d84cf1f90a7643c17cd8
include/types/graph.h
src/gmxlib/mshift.c
src/gmxlib/pbc.c
src/gmxlib/rmpbc.c
src/gmxlib/splitter.c
src/mdlib/calcvir.c
src/mdlib/update.c