Skip to content

Commit

Permalink
Merge pull request #2375 from francesco-ballarin/mpicompat
Browse files Browse the repository at this point in the history
Define MPI_Session in cython files for compatibility with current mpi4py main branch
  • Loading branch information
wence- committed Mar 10, 2022
2 parents e5c4aa6 + c2e6abc commit b5f8219
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions firedrake/cython/mpi-compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,9 @@ typedef void *PyMPI_MPI_Message;
#define MPI_Message PyMPI_MPI_Message
#endif

#if (MPI_VERSION < 4) && !defined(PyMPI_HAVE_MPI_Session)
typedef void *PyMPI_MPI_Session;
#define MPI_Session PyMPI_MPI_Session
#endif

#endif/*MPI_COMPAT_H*/

0 comments on commit b5f8219

Please sign in to comment.