From c76fcb18746eb005964eac7d6e7aee287b9d5858 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Mon, 13 Nov 2017 15:51:39 +0100 Subject: [PATCH] Reintroduce distributed/grid_tools.h for a deprecation warning --- include/deal.II/distributed/grid_tools.h | 23 +++++++++++++++++++++++ source/grid/grid_tools.cc | 1 + 2 files changed, 24 insertions(+) create mode 100644 include/deal.II/distributed/grid_tools.h diff --git a/include/deal.II/distributed/grid_tools.h b/include/deal.II/distributed/grid_tools.h new file mode 100644 index 0000000000..8c6f073226 --- /dev/null +++ b/include/deal.II/distributed/grid_tools.h @@ -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 instead and remove 'parallel::'." + +#include + +#endif // dealii_distributed_grid_tools_h diff --git a/source/grid/grid_tools.cc b/source/grid/grid_tools.cc index 710358360f..4531701324 100644 --- a/source/grid/grid_tools.cc +++ b/source/grid/grid_tools.cc @@ -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(); -- 2.39.5