Remove gmx_hw_info_t::ncore
commit840c5e7149619eefc1cbe6bc156c38c8f17d9401
authorTeemu Murtola <teemu.murtola@gmail.com>
Tue, 26 Apr 2016 13:24:55 +0000 (26 16:24 +0300)
committerMark Abraham <mark.j.abraham@gmail.com>
Thu, 28 Apr 2016 08:13:27 +0000 (28 10:13 +0200)
treee0b525caf4b3351f189ae9d1883a0a93162141d6
parentfc1d4043b0f123851935f4080785c55e07b97c1b
Remove gmx_hw_info_t::ncore

This information is already available through HardwareTopology that is
contained as a member in the same structure.  Add a helper function to
HardwareTopology to return this information, instead of having a
duplicate member for this.  This makes it easier to reason about the
code.  The code that populated ncore was also incorrect.

Fixes #1903.

Change-Id: Ic6aef660ec07ac4ec481593fb9ae5aa3c87df80e
src/gromacs/hardware/detecthardware.cpp
src/gromacs/hardware/hardwaretopology.cpp
src/gromacs/hardware/hardwaretopology.h
src/gromacs/hardware/hw_info.h
src/programs/mdrun/resource-division.cpp