From 6c874f444c4515d603cee8fe47852ea49f129324 Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Wed, 26 Aug 2015 09:01:42 -0400 Subject: [PATCH] fix compilation error in compute_ghost_cell_halo_layer MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fix the following compilation error on my machine (gcc 4.6.3) /ssd/deal-git/source/grid/grid_tools.cc:1581:103: error: no matching function for call to ‘compute_active_cell_halo_layer(const dealii::Triangulation<1, 1>&, dealii::IteratorFilters::LocallyOwnedCell)’ /ssd/deal-git/source/grid/grid_tools.cc:1581:103: note: candidate is: /ssd/deal-git/source/grid/grid_tools.cc:1540:3: note: template std::vector dealii::GridTools::compute_active_cell_halo_layer(const Container&, const std::function&) --- source/grid/grid_tools.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/grid/grid_tools.cc b/source/grid/grid_tools.cc index 48cc49d8db..e171b079a1 100644 --- a/source/grid/grid_tools.cc +++ b/source/grid/grid_tools.cc @@ -1577,8 +1577,11 @@ next_cell: std::vector compute_ghost_cell_halo_layer (const Container &container) { + std_cxx11::function predicate + = IteratorFilters::LocallyOwnedCell(); + const std::vector - active_halo_layer = compute_active_cell_halo_layer (container, IteratorFilters::LocallyOwnedCell()); + active_halo_layer = compute_active_cell_halo_layer (container, predicate); // Check that we never return locally owned or artificial cells // What is left should only be the ghost cells -- 2.39.5