From 4378aa37e4c84e6d066e1d5ecfedf192cf4dfe4e Mon Sep 17 00:00:00 2001
From: Timo Heister <timo.heister@gmail.com>
Date: Sat, 12 Aug 2017 18:45:26 -0600
Subject: [PATCH] make compile without MPI

---
 include/deal.II/distributed/grid_tools.h | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/include/deal.II/distributed/grid_tools.h b/include/deal.II/distributed/grid_tools.h
index 41950701ee..a247d68134 100644
--- a/include/deal.II/distributed/grid_tools.h
+++ b/include/deal.II/distributed/grid_tools.h
@@ -197,6 +197,12 @@ namespace parallel
                                   std::function<DataType (const typename MeshType::active_cell_iterator &)> pack,
                                   std::function<void (const typename MeshType::active_cell_iterator &, const DataType &)> unpack)
     {
+#ifndef DEAL_II_WITH_MPI
+      (void)mesh;
+      (void)pack;
+      (void)unpack;
+      Assert(false, ExcMessage("parallel::GridTools::exchange_cell_data_to_ghosts() requires MPI."));
+#else
       constexpr int dim = MeshType::dimension;
       constexpr int spacedim = MeshType::space_dimension;
       auto tria =
@@ -320,7 +326,7 @@ namespace parallel
               unpack(cell, *data);
             }
         }
-
+#endif // DEAL_II_WITH_MPI
     }
 
   }
-- 
2.39.5