Split printhardware from detecthardware
commite43e83bfb17b6261d5e336c147a3d06d9ca9c73a
authorMark Abraham <mark.j.abraham@gmail.com>
Fri, 4 Aug 2017 13:43:18 +0000 (4 15:43 +0200)
committerKasson <kasson@gmail.com>
Sun, 6 Aug 2017 18:26:51 +0000 (6 20:26 +0200)
treedc721c2b06904d61a20e7d9136ae707d5398d56c
parentdd9859930822a97cb9b33ba116821e6940329675
Split printhardware from detecthardware

These have little in common, so should be separate for better
readability and maintainability. Resolves an existing TODO.

Changed a HOSTNAMELEN to STRLEN, just in case hostnames are long.

Noted a new TODO to use MPI_Get_processor_name in printing the
detected hardware.

No other code changes, just movement and include minimization.

Change-Id: Ifd48695964bd7340e957fb55bcb2f66c89e75d1b
src/gromacs/hardware/CMakeLists.txt
src/gromacs/hardware/detecthardware.cpp
src/gromacs/hardware/detecthardware.h
src/gromacs/hardware/printhardware.cpp [new file with mode: 0644]
src/gromacs/hardware/printhardware.h [copied from src/gromacs/hardware/detecthardware.h with 65% similarity]
src/programs/mdrun/runner.cpp