Change BlockRanges to class RangePartitioning
authorBerk Hess <hess@kth.se>
Thu, 14 Jun 2018 10:18:49 +0000 (12:18 +0200)
committerMark Abraham <mark.j.abraham@gmail.com>
Thu, 28 Jun 2018 07:24:13 +0000 (09:24 +0200)
commitd4f85b613049e141c44f505b49e28e8b706b76ae
tree87e02f543f119683ca64be36415c4f16d673e148
parent366863b052709c809a420901086fda70ccd41098
Change BlockRanges to class RangePartitioning

Now RangePartitioning is a proper class, apart from the temporary
method that allows direct access to the (private) index.
Range based for loops are now used where possible.
Also simplified some use of this in DD distribute.

Change-Id: Ic7b1895024a74a79a4838253545329bd4c8f27c0
18 files changed:
src/gromacs/domdec/distribute.cpp
src/gromacs/domdec/distribute.h
src/gromacs/domdec/domdec.cpp
src/gromacs/domdec/domdec_constraints.cpp
src/gromacs/domdec/domdec_struct.h
src/gromacs/domdec/domdec_topology.cpp
src/gromacs/domdec/redistribute.cpp
src/gromacs/gmxana/gmx_clustsize.cpp
src/gromacs/imd/imd.cpp
src/gromacs/mdlib/forcerec.cpp
src/gromacs/mdlib/membed.cpp
src/gromacs/mdlib/wnblist.cpp
src/gromacs/selection/indexutil.cpp
src/gromacs/selection/indexutil.h
src/gromacs/topology/block.cpp
src/gromacs/topology/block.h
src/gromacs/topology/mtop_util.cpp
src/gromacs/topology/mtop_util.h