Enable rtp angle/dihedral entries not connected by bonds
authorErik Lindahl <erik@kth.se>
Tue, 24 Jun 2014 20:54:45 +0000 (22:54 +0200)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Sun, 29 Jun 2014 06:04:38 +0000 (08:04 +0200)
commit7ba0a841df25e54d36586e31003fbfe93bd2588d
tree46a7575f5f1ae5098f838fe0bf289eaab778f6d7
parent8d30e53ee1b5017622ce70a2516f16db40abe348
Enable rtp angle/dihedral entries not connected by bonds

pdb2gmx has previously silently ignored any angles or
torsions not connected by bonds. This patch adds code
to mark with RTP/hackblock entries that have been
assigned in this search, and afterwards we add those
that have not yet been matched. In particular, this makes
it possible to have angles or torsions in RTP entries
even if those atoms are not connected by bonds.

Fixes #1276.

Change-Id: I61c3c3954ef8c4cd59956d88b73c6a69c1a66c65
src/gromacs/gmxpreprocess/gen_ad.c
src/gromacs/gmxpreprocess/hackblock.c
src/gromacs/gmxpreprocess/hackblock.h
src/gromacs/gmxpreprocess/pdb2top.cpp
src/gromacs/gmxpreprocess/pgutil.c
src/gromacs/gmxpreprocess/pgutil.h