Converted md.c to C++
authorMark Abraham <mark.j.abraham@gmail.com>
Tue, 27 May 2014 13:14:53 +0000 (15:14 +0200)
committerMark Abraham <mark.j.abraham@gmail.com>
Mon, 2 Jun 2014 22:35:36 +0000 (00:35 +0200)
commit033fbf068ba9c57526ec48da8bda54db077146d1
tree68c955c1e7190b707b44f6f2638bc96171b22d86
parentf5cb7b071f62ff9abd9e6c9b7ab961825d1660c2
Converted md.c to C++

Removed unused variables, added missing headers, added missing
extern "C" specifiers. Removed assignments of unused values.

Made the code always call init_nlistheuristics(), in order to suppress
a clang-static-analyzer check that thinks (for example) MULTISIM(cr)
can change its value over MD loops. Calling that init function is
cheap, outside the MD loop, has no effect because those code paths are
always protected by a check for nstlist == -1, and probably those code
paths will go away shortly.

Change-Id: I8abb8ef28c121c7b5432bf38d958c0b2a55ed9da
src/gromacs/fileio/mdoutf.h
src/gromacs/fileio/trajectory_writing.h
src/programs/mdrun/md.cpp [moved from src/programs/mdrun/md.c with 99% similarity]
src/programs/mdrun/pme_loadbal.h
src/programs/mdrun/repl_ex.h