Consolidated logic for choosing number of thread-MPI ranks
commit73a216c0ab041138cea70be24937b3b848628937
authorMark Abraham <mark.j.abraham@gmail.com>
Thu, 22 Jun 2017 00:19:11 +0000 (22 02:19 +0200)
committerMark Abraham <mark.j.abraham@gmail.com>
Thu, 22 Jun 2017 20:36:13 +0000 (22 22:36 +0200)
tree432be2857c5b02d4b79eab33e27bd1c83eea2227
parent9cfe710a94f97795dfe9c38fc4f14373d9e42ad3
Consolidated logic for choosing number of thread-MPI ranks

Noted TODO to handle issue that was always present, but is now
easy to see needs handling.

Added explicit fatal error for a case that a comment claimed was
handled later, but for which I could not find handling.

Removed some logic for nthreads_tot == 1 that was redundant with
that in get_nthreads_mpi and check_and_update_hw_opt_3.

Added explicit checks for -ntmpi and -ntomp greater than -nt,
replacing an old check that gave an incorrect message, and was only
used when -nt selected 1 total threads.

Change-Id: I6b6634ac4dd726a784a626624de4405a4ddb07f0
src/programs/mdrun/resource-division.cpp