Use C++ replacement for md_logging.*
authorTeemu Murtola <teemu.murtola@gmail.com>
Wed, 1 Jun 2016 18:20:01 +0000 (21:20 +0300)
committerTeemu Murtola <teemu.murtola@gmail.com>
Wed, 1 Jun 2016 19:17:28 +0000 (22:17 +0300)
commit20bbcb75fabf85b9c127f8035eb0adb5c60ffe44
treea87fa533a826f8626203c65aa39d1934efb01b41
parent05353dd65a252a7fd60e6aa8dc898daca468c302
Use C++ replacement for md_logging.*

Replace md_logging.h with the new C++ implementation.  This removes the
need to pass around a (FILE *, t_commrec *) tuple for just calling
md_logging.h routines.  Initialize the logger in runner.cpp to get the
same output as earlier.  For now, output is the same as earlier, but the
new interface could also relatively easily support, e.g., automatic line
wrapping.

Further changes should see all of fplog access go through the same
object (possibly after finetuning the interface), but that would be too
large of a change to do in one go.

Thread affinity tests for now just discard the log output, making them
more silent.  Future changes should see the log output verified, to
check that the correct messages are produced.

Related to #1505, closes #1644.

Change-Id: I0895b752b040d231cacb49a3a7a48d26c6096944
31 files changed:
src/gromacs/ewald/pme-load-balancing.cpp
src/gromacs/ewald/pme-load-balancing.h
src/gromacs/gmxlib/md_logging.cpp [deleted file]
src/gromacs/gmxlib/md_logging.h [deleted file]
src/gromacs/gpu_utils/gpu_utils.cu
src/gromacs/gpu_utils/gpu_utils.h
src/gromacs/gpu_utils/gpu_utils_ocl.cpp
src/gromacs/hardware/detecthardware.cpp
src/gromacs/hardware/detecthardware.h
src/gromacs/mdlib/force.h
src/gromacs/mdlib/forcerec.cpp
src/gromacs/mdlib/forcerec.h
src/gromacs/mdlib/gmx_omp_nthreads.cpp
src/gromacs/mdlib/gmx_omp_nthreads.h
src/gromacs/mdlib/integrator.h
src/gromacs/mdlib/md_support.cpp
src/gromacs/mdlib/md_support.h
src/gromacs/mdlib/minimize.cpp
src/gromacs/mdlib/sim_util.cpp
src/gromacs/mdlib/sim_util.h
src/gromacs/mdlib/tpi.cpp
src/gromacs/mdrunutility/tests/threadaffinitytest.h
src/gromacs/mdrunutility/threadaffinity.cpp
src/gromacs/mdrunutility/threadaffinity.h
src/gromacs/timing/wallcycle.cpp
src/gromacs/timing/wallcyclereporting.h
src/gromacs/utility/logger.h
src/programs/mdrun/md.cpp
src/programs/mdrun/resource-division.cpp
src/programs/mdrun/resource-division.h
src/programs/mdrun/runner.cpp