]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Reintroduce distributed/grid_tools.h for a deprecation warning
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Mon, 13 Nov 2017 14:51:39 +0000 (15:51 +0100)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Mon, 13 Nov 2017 14:57:36 +0000 (15:57 +0100)
include/deal.II/distributed/grid_tools.h [new file with mode: 0644]
source/grid/grid_tools.cc

diff --git a/include/deal.II/distributed/grid_tools.h b/include/deal.II/distributed/grid_tools.h
new file mode 100644 (file)
index 0000000..8c6f073
--- /dev/null
@@ -0,0 +1,23 @@
+// ---------------------------------------------------------------------
+//
+// Copyright (C) 2017 by the deal.II authors
+//
+// This file is part of the deal.II library.
+//
+// The deal.II library is free software; you can use it, redistribute
+// it, and/or modify it under the terms of the GNU Lesser General
+// Public License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+// The full text of the license can be found in the file LICENSE at
+// the top level of the deal.II distribution.
+//
+// ---------------------------------------------------------------------
+
+#ifndef dealii_distributed_grid_tools_h
+#define dealii_distributed_grid_tools_h
+
+#warning "This file is deprecated and will be removed before the 9.0 release. Use <deal.II/grid/grid_tools.h> instead and remove 'parallel::'."
+
+#include <deal.II/grid/grid_tools.h>
+
+#endif // dealii_distributed_grid_tools_h
index 710358360f4315ef43fd686403cc5590b352addc..45317013248a63b9a965391c4890a9203c848dd2 100644 (file)
@@ -5146,6 +5146,7 @@ next_cell:
     (void)local_bboxes;
     (void)mpi_communicator;
     Assert(false, ExcMessage("GridTools::exchange_local_bounding_boxes() requires MPI."));
+    return {};
 #else
     // Step 1: preparing data to be sent
     unsigned int n_bboxes = local_bboxes.size();

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.