Clean up genbox and associated code
authorMark Abraham <mark.j.abraham@gmail.com>
Sat, 1 Feb 2014 19:12:17 +0000 (20:12 +0100)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Mon, 3 Feb 2014 04:46:06 +0000 (05:46 +0100)
commit2b556caadd41024ed896c82d4519c2f0f8a0c30d
tree330232fb541b275295817de18b91e410c0a684e8
parentbc11b32b5509d2bf911e7aab926d9b4e249c1ef2
Clean up genbox and associated code

Moved genbox utility to preprocessing module from analysis module.
Renamed its addconf implementation files. Fixed necessary #include
dependencies. Made several functions static.

Renamed gbutil.[ch] to conformation-utilities.[ch], because they are
not exclusive to anything abbreviated "gb." These are mostly used by
gmxpreprocess, but also mdlib/tpi.c, and the header file is not really
useful to install, so the only current place they should move is
gmxlib. Removed unused orient(). Renamed genconf() and gen_box() to
avoid confusion with the utilities of those names. Moved the new
make_new_conformation into genbox.cpp because it is only used there.
Made two functions static. Removed unused (maybe broken?) NTB
parameter of the new make_new_box() function. Removed some debug
code that used a print function in a different compilation unit.

Change-Id: I33d15b2df63c9422ce241782a922145f4626b0fb
src/gromacs/gmxana/gmx_ana.h
src/gromacs/gmxana/gmx_editconf.c
src/gromacs/gmxlib/conformation-utilities.c [moved from src/gromacs/gmxlib/gbutil.c with 54% similarity]
src/gromacs/gmxlib/conformation-utilities.h [moved from src/gromacs/legacyheaders/gbutil.h with 70% similarity]
src/gromacs/gmxpreprocess/genbox-addconf.c [moved from src/gromacs/gmxana/addconf.c with 98% similarity]
src/gromacs/gmxpreprocess/genbox-addconf.h [moved from src/gromacs/gmxana/addconf.h with 93% similarity]
src/gromacs/gmxpreprocess/genbox.cpp [moved from src/gromacs/gmxana/gmx_genbox.cpp with 93% similarity]
src/gromacs/gmxpreprocess/genbox.h [new file with mode: 0644]
src/gromacs/gmxpreprocess/pdb2gmx.c
src/gromacs/mdlib/tpi.c
src/programs/legacymodules.cpp