From 7e309e8a8d7882516b1d7f4815daf52f296bd46f Mon Sep 17 00:00:00 2001
From: Eric Bavier <bavier@member.fsf.org>
Date: Fri, 25 Jan 2019 11:05:14 -0600
Subject: [PATCH] gnu: dealii-openmpi: Setup MPI for tests.

* gnu/packages/maths.scm (dealii-openmpi)[arguments]: Add 'mpi-setup' phase.
---
 gnu/packages/maths.scm | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index e2f3d84d09b..66d60639ab3 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -3494,7 +3494,11 @@ (define-public dealii-openmpi
         ``("-DMPI_C_COMPILER=mpicc"
            "-DMPI_CXX_COMPILER=mpicxx"
            "-DMPI_Fortran_COMPILER=mpifort"
-           ,@,cf))))
+           ,@,cf))
+       ((#:phases phases '%standard-phases)
+        `(modify-phases ,phases
+           (add-before 'check 'mpi-setup
+             ,%openmpi-setup)))))
     (synopsis "Finite element library (with MPI support)")))
 
 (define-public flann
-- 
GitLab