Converted runner.c to C++
authorMark Abraham <mark.j.abraham@gmail.com>
Tue, 27 May 2014 12:48:06 +0000 (14:48 +0200)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Tue, 24 Jun 2014 08:10:27 +0000 (10:10 +0200)
commita7251dfa1d0e1c4ebd321c2ac0a806b96d5bec24
tree6af6a69bebb082393d779c9a795c9cdd40cf190f
parent638d2ebc02dfb96618a6437bf3630b581f4470a9
Converted runner.c to C++

Used std::max, eliminated unused variables, used const char *, used
size_t instead of int, declared constant variable of type float
rather than type double.

Moved declaration of cr_old to where it is used.

Renamed variables relating to automated nstlist choice to better
reflect what is actually going on.

Added some assertions to help static analysis and humans understand
what is going on. This is a problem because static analysis can't
reason correctly about cr and fr while we continue to pass them
everywhere as non-const.

Change-Id: I1afe0c5e96c0ccdc6b46f772f8746402af471234
src/gromacs/utility/smalloc.h
src/programs/mdrun/runner.cpp [moved from src/programs/mdrun/runner.c with 97% similarity]