From cfc5c8fa1c4a701045a0b5eb5932b8a2c9ed3874 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Thu, 20 Jan 2022 10:45:50 -0700 Subject: [PATCH] Define MPI_COMM_NULL when not using MPI. --- include/deal.II/base/mpi.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/deal.II/base/mpi.h b/include/deal.II/base/mpi.h index 4317703957..68e2a96187 100644 --- a/include/deal.II/base/mpi.h +++ b/include/deal.II/base/mpi.h @@ -44,6 +44,9 @@ using MPI_Op = int; # ifndef MPI_COMM_SELF # define MPI_COMM_SELF 0 # endif +# ifndef MPI_COMM_NULL +# define MPI_COMM_NULL 0 +# endif # ifndef MPI_REQUEST_NULL # define MPI_REQUEST_NULL 0 # endif -- 2.39.5