From: Timo Heister Date: Sun, 13 Aug 2017 00:45:26 +0000 (-0600) Subject: make compile without MPI X-Git-Tag: v9.0.0-rc1~1283^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4378aa37e4c84e6d066e1d5ecfedf192cf4dfe4e;p=dealii.git make compile without MPI --- 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 pack, std::function 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 } }