Avoid more C++ bindings for MPI
authorMark Abraham <mark.j.abraham@gmail.com>
Thu, 7 Jan 2016 17:31:11 +0000 (18:31 +0100)
committerMark Abraham <mark.j.abraham@gmail.com>
Thu, 7 Jan 2016 17:32:25 +0000 (18:32 +0100)
This avoids picking up the C++ bindings from SGI's MPT.

Change-Id: Ie8d30a6d59f04a6b69ac9ccf29aa5db631a2b3cb

src/gromacs/utility/gmxmpi.h

index aef668910f07da5135e11bcff5dc5415562534c8..dc94d9680151ef5600d8de90472062a7c74ee3e7 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * This file is part of the GROMACS molecular simulation package.
  *
- * Copyright (c) 2013,2014, by the GROMACS development team, led by
+ * Copyright (c) 2013,2014,2016, by the GROMACS development team, led by
  * Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
  * and including many others, as listed in the AUTHORS file in the
  * top-level source directory and at http://www.gromacs.org.
@@ -56,6 +56,8 @@
 /* MPI C++ binding is deprecated and can cause name conflicts (e.g. stdio/mpi seek) */
 #define MPICH_SKIP_MPICXX 1
 #define OMPI_SKIP_MPICXX 1
+/* disable bindings for SGI MPT also */
+#define MPI_NO_CPPBIND 1
 #include <mpi.h>
 /* Starting with 2.2 MPI_INT64_T is required. Earlier version still might have it.
    In theory MPI_Datatype doesn't have to be a #define, but current available MPI