Move some defines to gmxpre.h for thread-MPI
authorTeemu Murtola <teemu.murtola@gmail.com>
Fri, 5 Sep 2014 18:55:55 +0000 (21:55 +0300)
committerTeemu Murtola <teemu.murtola@gmail.com>
Fri, 5 Sep 2014 18:55:55 +0000 (21:55 +0300)
Thread-MPI requires TMPI_WAIT_FOR_NO_ONE to be defined consistently in
all code that may use structs that use TMPI_YIELD_WAIT_DATA, and there
are several of those structs.  Moved the definition for this macro to
gmxpre.h, so that it should be defined everywhere and not cause
surprises.  Rationale for not moving any other defines (some are used by
thread_mpi/include/*) is given in comments, and if/when thread-MPI is
going to disappear sooner or later, there hopefully will not be much
more code introduced that would depend on it and would require a more
robust mechanism, or warrant changing thread-MPI itself.

Change-Id: Ic9f1c2c63fee183e65506f06fdc84d10cc5f97b9


No differences found