Clean up initial log output
commit367d0031064d59ebf7ee650927f4516352be7a38
authorMark Abraham <mark.j.abraham@gmail.com>
Thu, 22 Nov 2018 11:32:21 +0000 (22 12:32 +0100)
committerSzilárd Páll <pall.szilard@gmail.com>
Mon, 26 Nov 2018 10:23:21 +0000 (26 11:23 +0100)
treedba54fff13177f29b0c2e61f0d4ac1ceaba6b0aa
parent6e2042788e22f2fa55b85b08bd3acf4afea60e0b
Clean up initial log output

The rank count was incorrect when thread-MPI has not yet spawned
threads. It could only be fixed if we would have made that choice
before we open the log file, but we want to be able to report problems
to the log file from hardware detection or tpr reading which occur
before rank choice.

Host name, rank count and rank ID are all reported later, alongside
other such information, so there is no need to duplicate and
complicate our code.

PID is now reported later alongside other similar information. The log
file output looks reasonable, aligned, etc.

Noted TODO for future clean up.

Fixes #2775

Change-Id: Ifda6c44bfe28628934f4614e20eeeef436d80707
src/api/cpp/context.cpp
src/gromacs/mdrun/logging.cpp
src/gromacs/mdrun/logging.h
src/gromacs/mdrun/runner.cpp
src/gromacs/utility/binaryinformation.cpp
src/programs/mdrun/mdrun.cpp