From 8a56da58968220780924d1250ad4c93b4125a6b2 Mon Sep 17 00:00:00 2001
From: Oliver Sander <oliver.sander@tu-dresden.de>
Date: Mon, 1 Feb 2016 15:41:17 +0100
Subject: [PATCH] Set up MPI at the beginning of 'main'

This is needed even though we don't actually use MPI here.  Dune aborts with a
run-time error otherwise.
---
 src/gradient-flow.cc | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/gradient-flow.cc b/src/gradient-flow.cc
index ddc43007..585a4173 100644
--- a/src/gradient-flow.cc
+++ b/src/gradient-flow.cc
@@ -67,6 +67,9 @@ using namespace Dune;
 
 int main (int argc, char *argv[]) try
 {
+  // initialize MPI; this is needed even though we may never use it
+  MPIHelper::instance(argc, argv);
+
   // Start Python interpreter
   Python::start();
   Python::Reference main = Python::import("__main__");
-- 
GitLab