static void make_pp_communicator(FILE *fplog,
gmx_domdec_t *dd,
t_commrec gmx_unused *cr,
- int gmx_unused reorder)
+ bool gmx_unused reorder)
{
#if GMX_MPI
gmx_domdec_comm_t *comm;
{
periods[i] = TRUE;
}
- MPI_Cart_create(cr->mpi_comm_mygroup, DIM, dd->nc, periods, reorder,
+ MPI_Cart_create(cr->mpi_comm_mygroup, DIM, dd->nc, periods, static_cast<int>(reorder),
&comm_cart);
/* We overwrite the old communicator with the new cartesian one */
cr->mpi_comm_mygroup = comm_cart;
static void split_communicator(FILE *fplog, t_commrec *cr, gmx_domdec_t *dd,
DdRankOrder gmx_unused rankOrder,
- int gmx_unused reorder)
+ bool gmx_unused reorder)
{
gmx_domdec_comm_t *comm;
int i;
{
periods[i] = TRUE;
}
- MPI_Cart_create(cr->mpi_comm_mysim, DIM, comm->ntot, periods, reorder,
+ MPI_Cart_create(cr->mpi_comm_mysim, DIM, comm->ntot, periods, static_cast<int>(reorder),
&comm_cart);
MPI_Comm_rank(comm_cart, &rank);
if (MASTER(cr) && rank != 0)
gmx_domdec_t *dd, DdRankOrder ddRankOrder)
{
gmx_domdec_comm_t *comm;
- int CartReorder;
+ bool CartReorder;
comm = dd->comm;
* Real reordering is only supported on very few architectures,
* Blue Gene is one of them.
*/
- CartReorder = (getenv("GMX_NO_CART_REORDER") == nullptr);
+ CartReorder = getenv("GMX_NO_CART_REORDER") == nullptr;
if (cr->npmenodes > 0)
{
{
dd->comm->bCheckWhetherToTurnDlbOn = bValue;
- if (bValue == TRUE)
+ if (bValue)
{
/* Store the DD partitioning count, so we can ignore cycle counts
* over the next nstlist steps, which are often slower.