From 449ae622b9208adfebae025481da54fdd01126af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=BCtzel?= Date: Sun, 12 Jan 2025 11:21:03 +0100 Subject: [PATCH] Avoid build error when building ElmerIce without MPI. `MPI_SUCCESS` is used in ElmerIce. Even if building ElmerIce without MPI is currently(?) unsupported, add a definition for it to the MPI stub header anyway for completeness. --- fem/src/mpif_stub.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fem/src/mpif_stub.h b/fem/src/mpif_stub.h index 446e97e9e0..cf32e5f6c4 100644 --- a/fem/src/mpif_stub.h +++ b/fem/src/mpif_stub.h @@ -1,5 +1,5 @@ ! -! stub header for disabled mpi +! stub header for disabled mpi ! INTEGER MPI_COMM_WORLD PARAMETER (MPI_COMM_WORLD=1) @@ -42,3 +42,5 @@ PARAMETER (MPI_THREAD_FUNNELED=1) INTEGER MPI_IN_PLACE PARAMETER (MPI_IN_PLACE=1) + INTEGER MPI_SUCCESS + PARAMETER (MPI_SUCCESS=0)