Convert some mdrun utility code to C++
authorMark Abraham <mark.j.abraham@gmail.com>
Tue, 7 Jul 2015 10:03:30 +0000 (12:03 +0200)
committerErik Lindahl <erik@kth.se>
Sun, 26 Jul 2015 17:42:35 +0000 (19:42 +0200)
commita04f855267ee04b810f645e184f75fe6b520b8af
tree568c8faacb6ecc693ae1b9cde5c73c82d4a6c4f0
parent112241dea82b19d0a265556bd554fd8a84b60ded
Convert some mdrun utility code to C++

Eliminated unused variables, used std::min/max, renamed "try" variable
to "attempt" to avoid reserved word, moved declaration of MPI-specific
variables, added space between string literals intended for
concatenation, moved some variable declarations inside matching
preprocessor regions.

Change-Id: Id16fea81d90f15de9a8e8e6eadeb364df954fff7
19 files changed:
src/gromacs/gmxlib/calcgrid.cpp [moved from src/gromacs/gmxlib/calcgrid.c with 94% similarity]
src/gromacs/gmxlib/chargegroup.cpp [moved from src/gromacs/gmxlib/chargegroup.c with 99% similarity]
src/gromacs/gmxlib/disre.cpp [moved from src/gromacs/gmxlib/disre.c with 97% similarity]
src/gromacs/gmxlib/ifunc.cpp [moved from src/gromacs/gmxlib/ifunc.c with 99% similarity]
src/gromacs/gmxlib/inputrec.cpp [moved from src/gromacs/gmxlib/inputrec.c with 97% similarity]
src/gromacs/gmxlib/md_logging.cpp [moved from src/gromacs/gmxlib/md_logging.c with 97% similarity]
src/gromacs/gmxlib/names.cpp [moved from src/gromacs/gmxlib/names.c with 100% similarity]
src/gromacs/gmxlib/network.cpp [moved from src/gromacs/gmxlib/network.c with 99% similarity]
src/gromacs/gmxlib/orires.cpp [moved from src/gromacs/gmxlib/orires.c with 99% similarity]
src/gromacs/gmxlib/rbin.cpp [moved from src/gromacs/gmxlib/rbin.c with 100% similarity]
src/gromacs/gmxlib/sighandler.cpp [moved from src/gromacs/gmxlib/sighandler.c with 100% similarity]
src/gromacs/gmxlib/txtdump.cpp [moved from src/gromacs/gmxlib/txtdump.c with 98% similarity]
src/gromacs/gmxlib/typedefs.cpp [moved from src/gromacs/gmxlib/typedefs.c with 99% similarity]
src/gromacs/mdlib/compute_io.cpp [moved from src/gromacs/mdlib/compute_io.c with 98% similarity]
src/gromacs/mdlib/ebin.cpp [moved from src/gromacs/mdlib/ebin.c with 99% similarity]
src/gromacs/mdlib/mdebin.cpp [moved from src/gromacs/mdlib/mdebin.c with 98% similarity]
src/gromacs/mdlib/mdebin_bar.cpp [moved from src/gromacs/mdlib/mdebin_bar.c with 99% similarity]
src/gromacs/mdlib/perf_est.cpp [moved from src/gromacs/mdlib/perf_est.c with 94% similarity]
src/gromacs/mdlib/tgroup.cpp [moved from src/gromacs/mdlib/tgroup.c with 98% similarity]